Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
0b4d4560
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看板
提交
0b4d4560
编写于
3月 17, 2017
作者:
Y
yi.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add python requests, add DELETE_BUILD_CACHE arg
上级
653c981d
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
9 addition
and
4 deletion
+9
-4
paddle/scripts/docker/build.sh
paddle/scripts/docker/build.sh
+9
-4
未找到文件。
paddle/scripts/docker/build.sh
浏览文件 @
0b4d4560
...
@@ -25,7 +25,7 @@ else
...
@@ -25,7 +25,7 @@ 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
=
""
DOCKER_SUFFIX
=
"
cpu
"
else
else
DEB_PATH
=
"dist/cpu-noavx/"
DEB_PATH
=
"dist/cpu-noavx/"
DOCKER_SUFFIX
=
"noavx"
DOCKER_SUFFIX
=
"noavx"
...
@@ -40,8 +40,11 @@ if [[ ${BUILD_AND_INSTALL:-OFF} == 'ON' ]]; then
...
@@ -40,8 +40,11 @@ if [[ ${BUILD_AND_INSTALL:-OFF} == 'ON' ]]; then
fi
fi
mkdir
-p
/paddle/build
# -p means no error if exists
mkdir
-p
/paddle/build
# -p means no error if exists
cd
/paddle/build
# clean local cmake and third_party cache
# clean local cmake and third_party cache
cd
/paddle/build
&&
rm
-rf
*
&&
rm
-rf
../third_party
if
[
${
DELETE_BUILD_CACHE
}
==
'ON'
]
;
then
rm
-rf
*
&&
rm
-rf
../third_party
fi
cmake ..
\
cmake ..
\
-DWITH_DOC
=
${
WITH_DOC
:-
OFF
}
\
-DWITH_DOC
=
${
WITH_DOC
:-
OFF
}
\
-DWITH_GPU
=
${
WITH_GPU
:-
OFF
}
\
-DWITH_GPU
=
${
WITH_GPU
:-
OFF
}
\
...
@@ -54,7 +57,9 @@ if [[ ${BUILD_AND_INSTALL:-OFF} == 'ON' ]]; then
...
@@ -54,7 +57,9 @@ if [[ ${BUILD_AND_INSTALL:-OFF} == 'ON' ]]; then
make
install
make
install
# generate deb package for current build
# generate deb package for current build
# FIXME(typhoonzero): should we remove paddle/scripts/deb ?
# FIXME(typhoonzero): should we remove paddle/scripts/deb ?
cpack
-D
CPACK_GENERATOR
=
'DEB'
..
# FIXME: CPACK_DEBIAN_PACKAGE_DEPENDS removes all dev dependencies, must
# install them in docker
cpack
-D
CPACK_GENERATOR
=
'DEB'
-D
CPACK_DEBIAN_PACKAGE_DEPENDS
=
""
..
mv
/paddle/build/
*
.deb /paddle/
${
DEB_PATH
}
mv
/paddle/build/
*
.deb /paddle/
${
DEB_PATH
}
if
[[
${
BUILD_WOBOQ
:-
OFF
}
==
'ON'
]]
;
then
if
[[
${
BUILD_WOBOQ
:-
OFF
}
==
'ON'
]]
;
then
...
@@ -123,7 +128,7 @@ RUN ${MIRROR_UPDATE}
...
@@ -123,7 +128,7 @@ RUN ${MIRROR_UPDATE}
apt-get install -y libgfortran3 &&
\
apt-get install -y libgfortran3 &&
\
apt-get clean -y &&
\
apt-get clean -y &&
\
pip install --upgrade pip &&
\
pip install --upgrade pip &&
\
pip install -U 'protobuf==3.1.0'
pip install -U 'protobuf==3.1.0'
requests
RUN pip install numpy
RUN pip install numpy
# Use different deb file when building different type of images
# Use different deb file when building different type of images
ADD
\$
PWD/
${
DEB_PATH
}
*.deb /usr/local/opt/paddle/deb/
ADD
\$
PWD/
${
DEB_PATH
}
*.deb /usr/local/opt/paddle/deb/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录