Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
653c981d
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
653c981d
编写于
3月 17, 2017
作者:
Y
yi.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tags for build docker image
上级
1ab419a1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
2 deletion
+6
-2
Dockerfile
Dockerfile
+1
-1
paddle/scripts/docker/build.sh
paddle/scripts/docker/build.sh
+5
-1
未找到文件。
Dockerfile
浏览文件 @
653c981d
...
@@ -5,7 +5,7 @@ MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
...
@@ -5,7 +5,7 @@ MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
ARG
DEBIAN_FRONTEND=noninteractive
ARG
DEBIAN_FRONTEND=noninteractive
ARG
UBUNTU_MIRROR
ARG
UBUNTU_MIRROR
RUN
/bin/bash
-c
'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i '
s#http://archive.ubuntu.com#
${
UBUNTU_MIRROR
}
#g' /etc/apt/sources.list; fi'
RUN
/bin/bash
-c
'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i '
s#http://archive.ubuntu.com
/ubuntu
#
${
UBUNTU_MIRROR
}
#g' /etc/apt/sources.list; fi'
# ENV variables
# ENV variables
ARG
BUILD_WOBOQ
ARG
BUILD_WOBOQ
...
...
paddle/scripts/docker/build.sh
浏览文件 @
653c981d
...
@@ -16,15 +16,19 @@ if [ ${WITH_GPU} == "ON" ]; then
...
@@ -16,15 +16,19 @@ if [ ${WITH_GPU} == "ON" ]; then
BASE_IMAGE
=
"nvidia/cuda:7.5-cudnn5-runtime-ubuntu14.04"
BASE_IMAGE
=
"nvidia/cuda:7.5-cudnn5-runtime-ubuntu14.04"
if
[
${
WITH_AVX
}
==
"ON"
]
;
then
if
[
${
WITH_AVX
}
==
"ON"
]
;
then
DEB_PATH
=
"dist/gpu/"
DEB_PATH
=
"dist/gpu/"
DOCKER_SUFFIX
=
"gpu"
else
else
DEB_PATH
=
"dist/gpu-noavx/"
DEB_PATH
=
"dist/gpu-noavx/"
DOCKER_SUFFIX
=
"gpu-noavx"
fi
fi
else
else
BASE_IMAGE
=
"python:2.7.13-slim"
BASE_IMAGE
=
"python:2.7.13-slim"
if
[
${
WITH_AVX
}
==
"ON"
]
;
then
if
[
${
WITH_AVX
}
==
"ON"
]
;
then
DEB_PATH
=
"dist/cpu/"
DEB_PATH
=
"dist/cpu/"
DOCKER_SUFFIX
=
""
else
else
DEB_PATH
=
"dist/cpu-noavx/"
DEB_PATH
=
"dist/cpu-noavx/"
DOCKER_SUFFIX
=
"noavx"
fi
fi
fi
fi
# If Dockerfile.* sets BUILD_AND_INSTALL to 'ON', it would have copied
# If Dockerfile.* sets BUILD_AND_INSTALL to 'ON', it would have copied
...
@@ -95,7 +99,7 @@ else
...
@@ -95,7 +99,7 @@ else
MIRROR_UPDATE
=
"
\\
"
MIRROR_UPDATE
=
"
\\
"
fi
fi
cat
>
/paddle/build/Dockerfile
<<
EOF
cat
>
/paddle/build/Dockerfile
.
${
DOCKER_SUFFIX
}
<<
EOF
FROM
${
BASE_IMAGE
}
FROM
${
BASE_IMAGE
}
MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录