Skip to content

Commit 2714fc7

Browse files
authored
[docker] delete install_trt in release docker (#34266)
* delete install_trt in release docker * fix whl package path
1 parent 45fa14f commit 2714fc7

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

tools/dockerfile/Dockerfile.release18

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ RUN apt-get update && \
2727
# Downgrade gcc&&g++
2828
WORKDIR /usr/bin
2929
COPY tools/dockerfile/build_scripts /build_scripts
30-
RUN bash /build_scripts/install_trt.sh
3130
RUN bash /build_scripts/install_gcc.sh gcc82 && rm -rf /build_scripts
3231
RUN cp gcc gcc.bak && cp g++ g++.bak && rm gcc && rm g++
3332
RUN ln -s /usr/local/gcc-8.2/bin/gcc /usr/local/bin/gcc

tools/dockerfile/ubuntu16_release.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ref_whl(){
2222
ref_gpu=gpu-cuda${ref_CUDA_MAJOR}-cudnn${CUDNN_MAJOR}
2323
install_gpu="_gpu"
2424
else
25-
ref_gpu="cpu-avx"
25+
ref_gpu="cpu"
2626
install_gpu=""
2727
fi
2828

@@ -56,7 +56,7 @@ function ref_whl(){
5656

5757
ref_dev=2.1.0.dev0
5858

59-
ref_web="https://paddle-wheel.bj.bcebos.com/${PADDLE_BRANCH}-${ref_gpu}-${ref_mkl}${ref_gcc}"
59+
ref_web="https://paddle-wheel.bj.bcebos.com/${PADDLE_BRANCH}/linux/linux-${ref_gpu}-${ref_mkl}${ref_gcc}-avx"
6060

6161
if [[ ${PADDLE_VERSION} == "develop" && ${WITH_GPU} == "ON" ]]; then
6262
ref_paddle37_whl=paddlepaddle${install_gpu}-${ref_dev}${ref_version}-cp37-cp37m-linux_x86_64.whl
@@ -95,13 +95,6 @@ function install_gcc(){
9595
}
9696

9797

98-
# function install_jupyter() {
99-
# if [[ ${WITH_NOTEBOOK} == "ON" ]];then
100-
# # install jupyter notebook
101-
# fi
102-
# }
103-
104-
10598
function make_dockerfile(){
10699
sed "s/<baseimg>/${docker_name}/g" tools/dockerfile/Dockerfile.release16 >Dockerfile.tmp
107100
}
@@ -110,7 +103,6 @@ function make_dockerfile(){
110103
function main(){
111104
make_dockerfile
112105
install_gcc
113-
# install_jupyter
114106
ref_whl
115107
install_whl
116108
}

tools/dockerfile/ubuntu18_release.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ref_whl(){
2222
ref_gpu=gpu-cuda${ref_CUDA_MAJOR}-cudnn${CUDNN_MAJOR}
2323
install_gpu="_gpu"
2424
else
25-
ref_gpu="cpu-avx"
25+
ref_gpu="cpu"
2626
install_gpu=""
2727
fi
2828

@@ -56,7 +56,7 @@ function ref_whl(){
5656

5757
ref_dev=2.1.0.dev0
5858

59-
ref_web="https://paddle-wheel.bj.bcebos.com/${PADDLE_BRANCH}-${ref_gpu}-${ref_mkl}${ref_gcc}"
59+
ref_web="https://paddle-wheel.bj.bcebos.com/${PADDLE_BRANCH}/linux/linux-${ref_gpu}-${ref_mkl}${ref_gcc}-avx"
6060

6161
if [[ ${PADDLE_VERSION} == "develop" && ${WITH_GPU} == "ON" ]]; then
6262
ref_paddle37_whl=paddlepaddle${install_gpu}-${ref_dev}${ref_version}-cp37-cp37m-linux_x86_64.whl
@@ -80,7 +80,6 @@ function install_gcc(){
8080
if [ "${gcc_version}" == "8.2.0" ];then
8181
sed -i 's#<install_gcc>#WORKDIR /usr/bin \
8282
COPY tools/dockerfile/build_scripts /build_scripts \
83-
RUN bash /build_scripts/install_trt.sh \
8483
RUN bash /build_scripts/install_gcc.sh gcc82 \&\& rm -rf /build_scripts \
8584
RUN cp gcc gcc.bak \&\& cp g++ g++.bak \&\& rm gcc \&\& rm g++ \
8685
RUN ln -s /usr/local/gcc-8.2/bin/gcc /usr/local/bin/gcc \
@@ -96,7 +95,6 @@ function install_gcc(){
9695
}
9796

9897

99-
10098
function make_dockerfile(){
10199
sed "s/<baseimg>/${docker_name}/g" tools/dockerfile/Dockerfile.release18 >Dockerfile.tmp
102100
}

0 commit comments

Comments
 (0)