未验证 提交 ced6ab6d 编写于 作者: T tianshuo78520a 提交者: GitHub

Update CE-Framework doccker (#38270)

上级 4c5ea4ca
...@@ -37,5 +37,4 @@ NO_COLOUR="\[\033[0m\]" ...@@ -37,5 +37,4 @@ NO_COLOUR="\[\033[0m\]"
GREEN="\[\033[1;32m\]" GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]" WHITE="\[\033[1;37m\]"
export PS1="\[\033[1;33m\]λ $WHITE\h $GREEN\w$YELLOW\$(__git_ps1 \" \[\033[35m\]{\[\033[36m\]%s\[\033[35m\]}\")$NO_COLOUR " export PS1="\[\033[1;33m\]λ $WHITE\h $GREEN\w $NO_COLOUR"
...@@ -30,7 +30,7 @@ else ...@@ -30,7 +30,7 @@ else
fi fi
if [ "$1" == "gcc82" ]; then if [ "$1" == "gcc82" ]; then
wget -q https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-8.2.0.tar.xz
tar -xvf gcc-8.2.0.tar.xz && \ tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \ cd gcc-8.2.0 && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \ unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
...@@ -44,7 +44,7 @@ if [ "$1" == "gcc82" ]; then ...@@ -44,7 +44,7 @@ if [ "$1" == "gcc82" ]; then
ln -s /usr/local/gcc-8.2/lib64/libstdc++.so.6 ${lib_so_6} && \ ln -s /usr/local/gcc-8.2/lib64/libstdc++.so.6 ${lib_so_6} && \
cp /usr/local/gcc-8.2/lib64/libstdc++.so.6.0.25 ${lib_path} cp /usr/local/gcc-8.2/lib64/libstdc++.so.6.0.25 ${lib_path}
elif [ "$1" == "gcc54" ]; then elif [ "$1" == "gcc54" ]; then
wget -q https://paddle-ci.gz.bcebos.com/gcc-5.4.0.tar.gz wget -q --no-proxy https://paddle-ci.gz.bcebos.com/gcc-5.4.0.tar.gz
tar -xzf gcc-5.4.0.tar.gz && \ tar -xzf gcc-5.4.0.tar.gz && \
cd gcc-5.4.0 && \ cd gcc-5.4.0 && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \ unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
......
...@@ -79,7 +79,7 @@ function make_cinn_dockerfile(){ ...@@ -79,7 +79,7 @@ function make_cinn_dockerfile(){
function make_ce_framework_dockcerfile(){ function make_ce_framework_dockcerfile(){
dockerfile_name="Dockerfile.cuda11.2_cudnn8_gcc82_trt8" dockerfile_name="Dockerfile.cuda11.2_cudnn8_gcc82_trt8"
sed "s/<baseimg>/11.2.0-cudnn8-devel-ubuntu18.04/g" ./Dockerfile.ubuntu18 >${dockerfile_name} sed "s/<baseimg>/11.2.0-cudnn8-devel-ubuntu16.04/g" ./Dockerfile.ubuntu >${dockerfile_name}
dockerfile_line=$(wc -l ${dockerfile_name}|awk '{print $1}') dockerfile_line=$(wc -l ${dockerfile_name}|awk '{print $1}')
sed -i "7i RUN chmod 777 /tmp" ${dockerfile_name} sed -i "7i RUN chmod 777 /tmp" ${dockerfile_name}
sed -i "${dockerfile_line}i RUN wget --no-check-certificate -q https://paddle-edl.bj.bcebos.com/hadoop-2.7.7.tar.gz \&\& \ sed -i "${dockerfile_line}i RUN wget --no-check-certificate -q https://paddle-edl.bj.bcebos.com/hadoop-2.7.7.tar.gz \&\& \
...@@ -100,9 +100,11 @@ function make_ce_framework_dockcerfile(){ ...@@ -100,9 +100,11 @@ function make_ce_framework_dockcerfile(){
RUN ln -s /usr/local/gcc-8.2/bin/g++ /usr/bin/g++ \\ RUN ln -s /usr/local/gcc-8.2/bin/g++ /usr/bin/g++ \\
ENV PATH=/usr/local/gcc-8.2/bin:\$PATH #g" ${dockerfile_name} ENV PATH=/usr/local/gcc-8.2/bin:\$PATH #g" ${dockerfile_name}
sed -i 's#RUN bash /build_scripts/install_trt.sh#RUN bash /build_scripts/install_trt.sh trt8034#g' ${dockerfile_name} sed -i 's#RUN bash /build_scripts/install_trt.sh#RUN bash /build_scripts/install_trt.sh trt8034#g' ${dockerfile_name}
sed -i 's#28/af/2c76c8aa46ccdf7578b83d97a11a2d1858794d4be4a1610ade0d30182e8b/pip-20.0.1.tar.gz#b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz#g' ${dockerfile_name}
sed -i 's#pip-20.0.1#pip-21.0.1#g' ${dockerfile_name}
sed -i 's#python setup.py install#python3.7 setup.py install#g' ${dockerfile_name}
} }
function main() { function main() {
make_ubuntu_dockerfile make_ubuntu_dockerfile
make_centos_dockerfile make_centos_dockerfile
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册