Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
824c72f5
P
Paddle
项目概览
PaddlePaddle
/
Paddle
9 个月 前同步成功
通知
2282
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
824c72f5
编写于
8月 17, 2020
作者:
I
iducn
提交者:
GitHub
8月 17, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify inference and py35 docker of branch 1.8 (#26148)
上级
c118da0a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
24 deletion
+28
-24
tools/manylinux1/Dockerfile.CI35-GCC4.8
tools/manylinux1/Dockerfile.CI35-GCC4.8
+8
-5
tools/manylinux1/Dockerfile.Inference
tools/manylinux1/Dockerfile.Inference
+20
-19
未找到文件。
tools/manylinux1/Dockerfile.CI35-GCC4.8
浏览文件 @
824c72f5
...
...
@@ -34,12 +34,12 @@ RUN cd /opt && wget -q --no-check-certificate https://github.com/google/protobuf
tar xzf protobuf-cpp-3.6.1.tar.gz && \
cd protobuf-3.6.1 && ./configure && make -j4 && make install && cd .. && rm -f protobuf-cpp-3.6.1.tar.gz
# ccache 3.
6
RUN wget https://paddle-ci.
cdn.bcebos.com/ccache-3.6
.tar.gz && \
tar xf ccache-3.
6.tar.gz && mkdir /usr/local/ccache-3.6 && cd ccache-3.6
&& \
./configure -prefix=/usr/local/ccache-3.
6
&& \
# ccache 3.
7.9
RUN wget https://paddle-ci.
gz.bcebos.com/ccache-3.7.9
.tar.gz && \
tar xf ccache-3.
7.9.tar.gz && mkdir /usr/local/ccache-3.7.9 && cd ccache-3.7.9
&& \
./configure -prefix=/usr/local/ccache-3.
7.9
&& \
make -j8 && make install && \
ln -s /usr/local/ccache-3.
6
/bin/ccache /usr/local/bin/ccache
ln -s /usr/local/ccache-3.
7.9
/bin/ccache /usr/local/bin/ccache
RUN wget https://raw.githubusercontent.com/PaddlePaddle/Paddle/develop/python/requirements.txt -O /root/requirements.txt
...
...
@@ -65,4 +65,7 @@ RUN LD_LIBRARY_PATH=/opt/_internal/cpython-2.7.11-ucs4/lib:${LD_LIBRARY_PATH} /o
RUN wget -O /opt/swig-2.0.12.tar.gz https://sourceforge.net/projects/swig/files/swig/swig-2.0.12/swig-2.0.12.tar.gz/download && \
cd /opt && tar xzf swig-2.0.12.tar.gz && cd /opt/swig-2.0.12 && ./configure && make && make install && cd /opt && rm swig-2.0.12.tar.gz
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/
CMD ["bash", "/paddle/paddle/scripts/docker/build.sh"]
tools/manylinux1/Dockerfile.Inference
浏览文件 @
824c72f5
...
...
@@ -23,7 +23,7 @@ COPY ./paddle/scripts/docker/root/ /root/
RUN apt-get update && \
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev
xz-utils tk-dev libffi-dev liblzma-dev
openmpi-bin openmpi-doc libopenmpi-dev
# Downgrade gcc&&g++
RUN apt-get update
...
...
@@ -102,10 +102,12 @@ WORKDIR /home/setuptools-40.6.2
RUN python setup.py build
RUN python setup.py install
WORKDIR /home
RUN wget https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gz
RUN tar -zxvf pip-18.0.tar.gz
WORKDIR pip-18.0
RUN python setup.py install
RUN python setup.py install && \
python3 setup.py install
WORKDIR /home
RUN rm Python-$version.tgz setuptools-40.6.2.zip pip-18.0.tar.gz && \
...
...
@@ -159,18 +161,18 @@ RUN pip3 --no-cache-dir install -U wheel py-cpuinfo==5.0.0 && \
pip --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
pip --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark
RUN pip3 --no-cache-dir install
'pre-commit==1.10.4' 'ipython==5.3.0'
&& \
pip3 --no-cache-dir install
'ipykernel==4.6.0' 'jupyter==1.0.0'
&& \
pip3 --no-cache-dir install opencv-python && \
pip3.6 --no-cache-dir install
'pre-commit==1.10.4' 'ipython==5.3.0'
&& \
pip3.6 --no-cache-dir install
'ipykernel==4.6.0' 'jupyter==1.0.0'
&& \
pip3.6 --no-cache-dir install opencv-python && \
pip3.7 --no-cache-dir install
'pre-commit==1.10.4' 'ipython==5.3.0'
&& \
pip3.7 --no-cache-dir install
'ipykernel==4.6.0' 'jupyter==1.0.0'
&& \
pip3.7 --no-cache-dir install opencv-python && \
pip --no-cache-dir install
'pre-commit==1.10.4' 'ipython==5.3.0'
&& \
pip --no-cache-dir install
'ipykernel==4.6.0' 'jupyter==1.0.0'
&& \
pip --no-cache-dir install opencv-python
RUN pip3 --no-cache-dir install
pre-commit==1.10.4 ipython==5.3.0
&& \
pip3 --no-cache-dir install
ipykernel==4.6.0 jupyter==1.0.0
&& \
pip3 --no-cache-dir install opencv-python
==3.1.0.0
&& \
pip3.6 --no-cache-dir install
pre-commit==1.10.4 ipython==5.3.0
&& \
pip3.6 --no-cache-dir install
ipykernel==4.6.0 jupyter==1.0.0
&& \
pip3.6 --no-cache-dir install opencv-python
==4.2.0.32
&& \
pip3.7 --no-cache-dir install
pre-commit==1.10.4 ipython==5.3.0
&& \
pip3.7 --no-cache-dir install
ipykernel==4.6.0 jupyter==1.0.0
&& \
pip3.7 --no-cache-dir install opencv-python
==4.2.0.32
&& \
pip --no-cache-dir install
pre-commit==1.10.4 ipython==5.3.0
&& \
pip --no-cache-dir install
ipykernel==4.6.0 jupyter==1.0.0
&& \
pip --no-cache-dir install opencv-python
==3.1.0.0
#For docstring checker
RUN pip3 --no-cache-dir install pylint pytest astroid isort
...
...
@@ -205,6 +207,10 @@ RUN git clone https://github.com/woboq/woboq_codebrowser /woboq && \
-DCMAKE_BUILD_TYPE=Release . \
make)
# Install hadoop
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/
# ar mishandles 4GB files
# https://sourceware.org/bugzilla/show_bug.cgi?id=14625
# remove them when apt-get support 2.27 and higher version
...
...
@@ -213,11 +219,6 @@ RUN wget -q https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/binutils/
cd binutils-2.27 && \
./configure && make -j && make install && cd .. && rm -rf binutils-2.27 binutils_2.27.orig.tar.gz
RUN wget --no-check-certificate https://pslib.bj.bcebos.com/openmpi-1.4.5.tar.gz && tar -xzf openmpi-1.4.5.tar.gz && \
cd openmpi-1.4.5 && ./configure --prefix=/usr/local && make all -j8 && make install -j8 && \
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH && export PATH=/usr/local/bin:$PATH && cd .. && \
rm -rf openmpi-1.4.5.tar.gz && pip --no-cache-dir install mpi4py && ln -fs /bin/bash /bin/sh && \
apt-get install libprotobuf-dev -y
RUN pip --no-cache-dir install -U netifaces==0.10.9
# Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录