Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
4350de6b
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
4350de6b
编写于
8月 06, 2020
作者:
T
tianshuo78520a
提交者:
GitHub
8月 06, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test ci dockerfile (#25777)
上级
ffcb6537
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
3 deletion
+13
-3
README.md
README.md
+1
-1
tools/dockerfile/Dockerfile.centos
tools/dockerfile/Dockerfile.centos
+8
-1
tools/dockerfile/ci_dockerfile.sh
tools/dockerfile/ci_dockerfile.sh
+4
-1
未找到文件。
README.md
浏览文件 @
4350de6b
<p
align=
"center"
>
<p
align=
"center"
>
<img
align=
"center"
src=
"doc/imgs/logo.png"
,
width=
1600
>
<img
align=
"center"
src=
"doc/imgs/logo.png"
,
width=
1600
>
<p>
<p>
...
...
tools/dockerfile/Dockerfile.centos
浏览文件 @
4350de6b
...
@@ -13,7 +13,7 @@ ENV PATH /opt/rh/devtoolset-2/root/usr/bin:$PATH
...
@@ -13,7 +13,7 @@ ENV PATH /opt/rh/devtoolset-2/root/usr/bin:$PATH
ENV LD_LIBRARY_PATH /opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib:/usr/local/lib64:/usr/local/lib:${LD_LIBRARY_PATH}
ENV LD_LIBRARY_PATH /opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib:/usr/local/lib64:/usr/local/lib:${LD_LIBRARY_PATH}
ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
RUN yum install -y sqlite-devel zlib-devel openssl-devel pcre-devel vim tk-devel tkinter libtool xz graphviz wget curl-devel
RUN yum install -y
gettext-devel
sqlite-devel zlib-devel openssl-devel pcre-devel vim tk-devel tkinter libtool xz graphviz wget curl-devel
COPY build_scripts /build_scripts
COPY build_scripts /build_scripts
RUN bash build_scripts/build.sh
RUN bash build_scripts/build.sh
RUN bash build_scripts/install_nccl2.sh && \
RUN bash build_scripts/install_nccl2.sh && \
...
@@ -22,6 +22,13 @@ RUN rm -rf build_scripts
...
@@ -22,6 +22,13 @@ RUN rm -rf build_scripts
ENV SSL_CERT_FILE=/opt/_internal/certs.pem
ENV SSL_CERT_FILE=/opt/_internal/certs.pem
# git 2.17.1
RUN wget -q https://paddle-ci.gz.bcebos.com/git-2.17.1.tar.gz && \
tar -xvf git-2.17.1.tar.gz && \
cd git-2.17.1 && \
./configure --prefix=/usr/local && \
make -j8 && make install
# for paddle
# for paddle
RUN wget --no-check-certificate -qO- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | \
RUN wget --no-check-certificate -qO- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | \
tar -xz -C /usr/local && \
tar -xz -C /usr/local && \
...
...
tools/dockerfile/ci_dockerfile.sh
浏览文件 @
4350de6b
...
@@ -3,9 +3,9 @@ function make_ubuntu_dockerfile(){
...
@@ -3,9 +3,9 @@ function make_ubuntu_dockerfile(){
dockerfile_name
=
"Dockerfile.cuda10_cudnn7_gcc82_ubuntu16"
dockerfile_name
=
"Dockerfile.cuda10_cudnn7_gcc82_ubuntu16"
sed
's/<baseimg>/10.1-cudnn7-devel-ubuntu16.04/g'
./Dockerfile.ubuntu
>
${
dockerfile_name
}
sed
's/<baseimg>/10.1-cudnn7-devel-ubuntu16.04/g'
./Dockerfile.ubuntu
>
${
dockerfile_name
}
sed
-i
's#liblzma-dev#liblzma-dev openmpi-bin openmpi-doc libopenmpi-dev#g'
${
dockerfile_name
}
sed
-i
's#liblzma-dev#liblzma-dev openmpi-bin openmpi-doc libopenmpi-dev#g'
${
dockerfile_name
}
dockerfile_line
=
`
wc
-l
${
dockerfile_name
}
|awk
'{print $1}'
`
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 &&
\
tar -xzf hadoop-2.7.7.tar.gz && mv hadoop-2.7.7 /usr/local/"
${
dockerfile_name
}
tar -xzf hadoop-2.7.7.tar.gz && mv hadoop-2.7.7 /usr/local/"
${
dockerfile_name
}
dockerfile_line
=
`
wc
-l
${
dockerfile_name
}
|awk
'{print $1}'
`
sed
-i
's#<install_gcc>#WORKDIR /usr/bin \
sed
-i
's#<install_gcc>#WORKDIR /usr/bin \
COPY tools/dockerfile/build_scripts /build_scripts \
COPY tools/dockerfile/build_scripts /build_scripts \
RUN bash /build_scripts/install_gcc.sh gcc82 \&\& rm -rf /build_scripts \
RUN bash /build_scripts/install_gcc.sh gcc82 \&\& rm -rf /build_scripts \
...
@@ -24,6 +24,9 @@ function make_centos_dockerfile(){
...
@@ -24,6 +24,9 @@ function make_centos_dockerfile(){
sed
's/<baseimg>/9.0-cudnn7-devel-centos6/g'
Dockerfile.centos
>
${
dockerfile_name
}
sed
's/<baseimg>/9.0-cudnn7-devel-centos6/g'
Dockerfile.centos
>
${
dockerfile_name
}
sed
-i
's#COPY build_scripts /build_scripts#COPY tools/dockerfile/build_scripts ./build_scripts#g'
${
dockerfile_name
}
sed
-i
's#COPY build_scripts /build_scripts#COPY tools/dockerfile/build_scripts ./build_scripts#g'
${
dockerfile_name
}
dockerfile_line
=
`
wc
-l
${
dockerfile_name
}
|awk
'{print $1}'
`
dockerfile_line
=
`
wc
-l
${
dockerfile_name
}
|awk
'{print $1}'
`
sed
-i
"
${
dockerfile_line
}
i RUN ln -s /usr/lib64/libz.so /usr/local/lib/libz.so &&
\
ln -s /usr/local/lib/libnccl.so /usr/local/cuda/lib64/ &&
\
rm -rf /usr/include/NvInfer*"
${
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 &&
\
tar -xzf hadoop-2.7.7.tar.gz && mv hadoop-2.7.7 /usr/local/"
${
dockerfile_name
}
tar -xzf hadoop-2.7.7.tar.gz && mv hadoop-2.7.7 /usr/local/"
${
dockerfile_name
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录