Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
ced6ab6d
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
ced6ab6d
编写于
12月 22, 2021
作者:
T
tianshuo78520a
提交者:
GitHub
12月 22, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update CE-Framework doccker (#38270)
上级
4c5ea4ca
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
6 deletion
+7
-6
paddle/scripts/docker/root/.bashrc
paddle/scripts/docker/root/.bashrc
+1
-2
tools/dockerfile/build_scripts/install_gcc.sh
tools/dockerfile/build_scripts/install_gcc.sh
+2
-2
tools/dockerfile/ci_dockerfile.sh
tools/dockerfile/ci_dockerfile.sh
+4
-2
未找到文件。
paddle/scripts/docker/root/.bashrc
浏览文件 @
ced6ab6d
...
@@ -37,5 +37,4 @@ NO_COLOUR="\[\033[0m\]"
...
@@ -37,5 +37,4 @@ NO_COLOUR="\[\033[0m\]"
GREEN
=
"
\[\0
33[1;32m
\]
"
GREEN
=
"
\[\0
33[1;32m
\]
"
WHITE
=
"
\[\0
33[1;37m
\]
"
WHITE
=
"
\[\0
33[1;37m
\]
"
export
PS1
=
"
\[\0
33[1;33m
\]
λ
$WHITE
\h
$GREEN
\w
$YELLOW
\$
(__git_ps1
\"
\[\0
33[35m
\]
{
\[\0
33[36m
\]
%s
\[\0
33[35m
\]
}
\"
)
$NO_COLOUR
"
export
PS1
=
"
\[\0
33[1;33m
\]
λ
$WHITE
\h
$GREEN
\w
$NO_COLOUR
"
tools/dockerfile/build_scripts/install_gcc.sh
浏览文件 @
ced6ab6d
...
@@ -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
&&
\
...
...
tools/dockerfile/ci_dockerfile.sh
浏览文件 @
ced6ab6d
...
@@ -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-ubuntu1
8.04/g"
./Dockerfile.ubuntu18
>
${
dockerfile_name
}
sed
"s/<baseimg>/11.2.0-cudnn8-devel-ubuntu1
6.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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录