File tree 4 files changed +12
-11
lines changed
4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,4 @@ make -j$(getconf _NPROCESSORS_ONLN)
7
7
cd /onnxruntime_src/test
8
8
/build/onnxruntime_server_tests
9
9
cd /build
10
- python3 -m pip install grpcio==1.27.2 requests protobuf
11
10
python3 server_test/test_main.py /build/onnxruntime_server /build/models/opset8/test_mnist /onnxruntime_src/test/testdata/server /build /build/server_test
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ jobs:
13
13
continueOnError : true
14
14
condition : always()
15
15
16
- - task : CmdLine@2
17
- displayName : ' Build docker image'
18
- inputs :
19
- script : docker build --pull -t onnxruntime-server-ubuntu18.04 --build-arg BUILD_USER=onnxruntimedev --build-arg BUILD_UID=$(id -u) --build-arg OS_VERSION=18.04 --build-arg PYTHON_VERSION=3.5 -f Dockerfile.ubuntu_server .
20
- workingDirectory : $(Build.SourcesDirectory)/tools/ci_build/github/linux/docker
16
+ - template : templates/get-docker-image-steps.yml
17
+ parameters :
18
+ Dockerfile : tools/ci_build/github/linux/docker/Dockerfile.ubuntu_server
19
+ Context : tools/ci_build/github/linux/docker
20
+ DockerBuildArgs : " --build-arg BUILD_USER=onnxruntimedev --build-arg BUILD_UID=$(id -u) --build-arg OS_VERSION=18.04 --build-arg PYTHON_VERSION=3.6"
21
+ Repository : onnxruntime-server-ubuntu18.04
21
22
22
23
- task : CmdLine@2
23
24
displayName : ' Run docker image'
Original file line number Diff line number Diff line change 1
- ARG OS_VERSION=16 .04
1
+ ARG OS_VERSION=18 .04
2
2
FROM ubuntu:${OS_VERSION}
3
3
4
- ARG PYTHON_VERSION=3.5
4
+ ARG PYTHON_VERSION=3.6
5
5
6
6
ADD scripts /tmp/scripts
7
7
RUN /tmp/scripts/install_ubuntu.sh -p $PYTHON_VERSION && /tmp/scripts/install_server_deps.sh && rm -rf /tmp/scripts
8
8
9
9
WORKDIR /root
10
10
11
- ENV LD_LIBRARY_PATH /usr/local/openblas/lib:$LD_LIBRARY_PATH
12
11
ENV PATH /usr/local/go/bin:$PATH
13
12
14
13
ARG BUILD_UID=1000
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ if [ $SYS_LONG_BIT = "64" ]; then
18
18
tar -zxf cmake-3.18.1-Linux-x86_64.tar.gz --strip=1 -C /usr
19
19
20
20
echo " Installing onnxruntime"
21
- aria2c https://github.com/microsoft/onnxruntime/releases/download/v1.4 .0/onnxruntime-linux-x64-1.4 .0.tgz
22
- tar -zxf onnxruntime-linux-x64-1.4 .0.tgz --strip=1
21
+ aria2c https://github.com/microsoft/onnxruntime/releases/download/v1.7 .0/onnxruntime-linux-x64-1.7 .0.tgz
22
+ tar -zxf onnxruntime-linux-x64-1.7 .0.tgz --strip=1
23
23
cp -r include/* /usr/include
24
24
cp -r lib/* /usr/lib
25
25
ldconfig /usr/lib
@@ -76,3 +76,5 @@ make -j$(getconf _NPROCESSORS_ONLN)
76
76
make install
77
77
cd /tmp
78
78
rm -rf /tmp/grpc
79
+
80
+ python3 -m pip install grpcio==1.27.2 requests protobuf
You can’t perform that action at this time.
0 commit comments