Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
1c4d7194
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看板
提交
1c4d7194
编写于
12月 03, 2016
作者:
Y
Yi Wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace m4 template by Dockerfile ARGs
上级
f34f5025
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
38 addition
and
35 deletion
+38
-35
paddle/scripts/docker/Dockerfile
paddle/scripts/docker/Dockerfile
+6
-11
paddle/scripts/docker/Dockerfile.gpu
paddle/scripts/docker/Dockerfile.gpu
+32
-0
paddle/scripts/docker/generate.sh
paddle/scripts/docker/generate.sh
+0
-24
未找到文件。
paddle/scripts/docker/Dockerfile
.m4
→
paddle/scripts/docker/Dockerfile
浏览文件 @
1c4d7194
FROM
PADDLE_BASE_IMAGE
FROM
ubuntu:14.04
MAINTAINER PaddlePaddle
Dev Team
<paddle-dev@baidu.com>
MAINTAINER
PaddlePaddle
Authors
<paddle-dev@baidu.com>
# It is good to run apt-get install with Dockerfile RUN directive,
# because if the following invocation to /root/build.sh fails, `docker
# build` wouldn't have to re-install packages after we fix
# /root/build.sh. For more about Docker build cache, please refer to
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/build-cache.
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
apt-get
install
-y
cmake libprotobuf-dev protobuf-compiler git
\
apt-get
install
-y
cmake libprotobuf-dev protobuf-compiler git
\
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip
\
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip
\
...
@@ -16,13 +11,13 @@ RUN apt-get update && \
...
@@ -16,13 +11,13 @@ RUN apt-get update && \
RUN
pip
install
BeautifulSoup docopt PyYAML pillow
\
RUN
pip
install
BeautifulSoup docopt PyYAML pillow
\
'sphinx>=1.4.0'
sphinx_rtd_theme breathe recommonmark
'sphinx>=1.4.0'
sphinx_rtd_theme breathe recommonmark
ENV WITH_GPU=PADDLE_WITH_GPU
ARG
WITH_AVX
ENV WITH_AVX=PADDLE_WITH_AVX
ENV
WITH_AVX=${WITH_AVX:-ON}
ENV
WITH_GPU=OFF
RUN
mkdir
/paddle
RUN
mkdir
/paddle
COPY
. /paddle/
COPY
. /paddle/
COPY paddle/scripts/docker/build.sh /root/
RUN
/paddle/paddle/scripts/docker/build.sh
RUN /root/build.sh
RUN
echo
'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}'
>>
/etc/profile
RUN
echo
'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}'
>>
/etc/profile
RUN
pip
install
/usr/local/opt/paddle/share/wheels/
*
.whl
RUN
pip
install
/usr/local/opt/paddle/share/wheels/
*
.whl
...
...
paddle/scripts/docker/Dockerfile.gpu
0 → 100644
浏览文件 @
1c4d7194
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
RUN apt-get update && \
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip \
python-protobuf python-numpy python-dev swig openssh-server \
wget unzip python-matplotlib tar xz-utils bzip2 gzip coreutils \
sed grep graphviz libjpeg-dev zlib1g-dev doxygen && \
apt-get clean -y
RUN pip install BeautifulSoup docopt PyYAML pillow \
'sphinx>=1.4.0' sphinx_rtd_theme breathe recommonmark
ARG WITH_AVX
ENV WITH_AVX=${WITH_AVX:-ON}
ENV WITH_GPU=ON
RUN mkdir /paddle
COPY . /paddle/
RUN /paddle/paddle/scripts/docker/build.sh
RUN echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile
RUN pip install /usr/local/opt/paddle/share/wheels/*.whl
RUN paddle version # print version after build
# Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service
RUN mkdir /var/run/sshd
RUN echo 'root:root' | chpasswd
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
paddle/scripts/docker/generate.sh
已删除
100755 → 0
浏览文件 @
f34f5025
#!/bin/bash
set
-e
cd
`
dirname
$0
`
m4
-DPADDLE_WITH_GPU
=
OFF
\
-DPADDLE_WITH_AVX
=
ON
\
-DPADDLE_BASE_IMAGE
=
ubuntu:14.04
\
Dockerfile.m4
>
Dockerfile.cpu
m4
-DPADDLE_WITH_GPU
=
OFF
\
-DPADDLE_WITH_AVX
=
OFF
\
-DPADDLE_BASE_IMAGE
=
ubuntu:14.04
\
Dockerfile.m4
>
Dockerfile.cpu-noavx
m4
-DPADDLE_WITH_GPU
=
ON
\
-DPADDLE_WITH_AVX
=
ON
\
-DPADDLE_BASE_IMAGE
=
nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
\
Dockerfile.m4
>
Dockerfile.gpu
m4
-DPADDLE_WITH_GPU
=
ON
\
-DPADDLE_WITH_AVX
=
OFF
\
-DPADDLE_BASE_IMAGE
=
nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
\
Dockerfile.m4
>
Dockerfile.gpu-noavx
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录