Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
6f29f258
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6f29f258
编写于
4月 16, 2021
作者:
W
wangjiawei04
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename tools/dockerfile to tools/dockerfiles
上级
ad7b8f15
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
8 addition
and
8 deletion
+8
-8
tools/Dockerfile.runtime_template
tools/Dockerfile.runtime_template
+5
-5
tools/dockerfiles/build_scripts/build.sh
tools/dockerfiles/build_scripts/build.sh
+0
-0
tools/dockerfiles/build_scripts/build_utils.sh
tools/dockerfiles/build_scripts/build_utils.sh
+0
-0
tools/dockerfiles/build_scripts/install_gcc.sh
tools/dockerfiles/build_scripts/install_gcc.sh
+0
-0
tools/dockerfiles/build_scripts/install_nccl2.sh
tools/dockerfiles/build_scripts/install_nccl2.sh
+0
-0
tools/dockerfiles/build_scripts/install_python.sh
tools/dockerfiles/build_scripts/install_python.sh
+0
-0
tools/dockerfiles/build_scripts/install_trt.sh
tools/dockerfiles/build_scripts/install_trt.sh
+0
-0
tools/dockerfiles/build_scripts/install_whl.sh
tools/dockerfiles/build_scripts/install_whl.sh
+0
-0
tools/dockerfiles/build_scripts/manylinux1-check.py
tools/dockerfiles/build_scripts/manylinux1-check.py
+0
-0
tools/dockerfiles/build_scripts/python-tag-abi-tag.py
tools/dockerfiles/build_scripts/python-tag-abi-tag.py
+0
-0
tools/dockerfiles/build_scripts/ssl-check.py
tools/dockerfiles/build_scripts/ssl-check.py
+0
-0
tools/dockerfiles/root/.bashrc
tools/dockerfiles/root/.bashrc
+0
-0
tools/dockerfiles/root/.gitconfig
tools/dockerfiles/root/.gitconfig
+0
-0
tools/dockerfiles/root/.scripts/git-completion.sh
tools/dockerfiles/root/.scripts/git-completion.sh
+0
-0
tools/dockerfiles/root/.scripts/git-prompt.sh
tools/dockerfiles/root/.scripts/git-prompt.sh
+0
-0
tools/generate_runtime_docker.sh
tools/generate_runtime_docker.sh
+3
-3
未找到文件。
tools/Dockerfile.runtime_template
浏览文件 @
6f29f258
...
...
@@ -6,11 +6,11 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y wget tar xz-utils bzip2 libcurl4-openssl-dev \
curl sed grep zlib1g-dev libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev && \
curl sed grep zlib1g-dev libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
libffi-dev
&& \
apt-get clean -y
WORKDIR /usr/bin
COPY tools/dockerfile/build_scripts /build_scripts
COPY tools/dockerfile
s
/build_scripts /build_scripts
RUN bash /build_scripts/install_gcc.sh gcc82 && rm -rf /build_scripts
RUN cp gcc gcc.bak && cp g++ g++.bak && rm gcc && rm g++
RUN ln -s /usr/local/gcc-8.2/bin/gcc /usr/local/bin/gcc
...
...
@@ -21,18 +21,18 @@ WORKDIR /usr/bin
# install python
WORKDIR /home
COPY tools/dockerfile/build_scripts /build_scripts
COPY tools/dockerfile
s
/build_scripts /build_scripts
RUN bash /build_scripts/install_python.sh <<python_version>> && rm -rf /build_scripts
# Other
# install whl and bin
WORKDIR /home
COPY tools/dockerfile/build_scripts /build_scripts
COPY tools/dockerfile
s
/build_scripts /build_scripts
RUN bash /build_scripts/install_whl.sh 0.5.0 2.0.0 <<run_env>> <<python_version>> && rm -rf /build_scripts
# install tensorrt
WORKDIR /home
COPY tools/dockerfile/build_scripts /build_scripts
COPY tools/dockerfile
s
/build_scripts /build_scripts
RUN bash /build_scripts/install_trt.sh && rm -rf /build_scripts
# install go
...
...
tools/dockerfile/build_scripts/build.sh
→
tools/dockerfile
s
/build_scripts/build.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/build_utils.sh
→
tools/dockerfile
s
/build_scripts/build_utils.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/install_gcc.sh
→
tools/dockerfile
s
/build_scripts/install_gcc.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/install_nccl2.sh
→
tools/dockerfile
s
/build_scripts/install_nccl2.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/install_python.sh
→
tools/dockerfile
s
/build_scripts/install_python.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/install_trt.sh
→
tools/dockerfile
s
/build_scripts/install_trt.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/install_whl.sh
→
tools/dockerfile
s
/build_scripts/install_whl.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/manylinux1-check.py
→
tools/dockerfile
s
/build_scripts/manylinux1-check.py
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/python-tag-abi-tag.py
→
tools/dockerfile
s
/build_scripts/python-tag-abi-tag.py
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/build_scripts/ssl-check.py
→
tools/dockerfile
s
/build_scripts/ssl-check.py
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/root/.bashrc
→
tools/dockerfile
s
/root/.bashrc
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/root/.gitconfig
→
tools/dockerfile
s
/root/.gitconfig
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/root/.scripts/git-completion.sh
→
tools/dockerfile
s
/root/.scripts/git-completion.sh
浏览文件 @
6f29f258
文件已移动
tools/dockerfile/root/.scripts/git-prompt.sh
→
tools/dockerfile
s
/root/.scripts/git-prompt.sh
浏览文件 @
6f29f258
文件已移动
tools/generate_runtime_docker.sh
浏览文件 @
6f29f258
...
...
@@ -5,7 +5,7 @@ set -e
function
usage
{
echo
"usage:
arg_parse_example -a AN_ARG -s SOME_MORE_ARGS [-y YET_MORE_ARGS || -h]
"
echo
"usage:
sh tools/generate_runtime_docker.sh --SOME_ARG ARG_VALUE
"
echo
" "
;
echo
" --env : running env, cpu/cuda10.1/cuda10.2/cuda11"
;
echo
" --python : python version, 2.7/3.6/3.7 "
;
...
...
@@ -42,7 +42,7 @@ function parse_args
# validate required args
if
[[
-z
"
${
paddle
}
"
||
-z
"
${
env
}
"
||
-z
"
${
python
}
"
||
-z
"
${
serving
}
"
]]
;
then
echo
"Invalid arguments"
echo
"Invalid arguments
. paddle or env or python or serving is missing.
"
usage
exit
;
fi
...
...
@@ -73,7 +73,7 @@ function run
echo
"named arg: paddle:
$paddle
"
echo
"named arg: image_name:
$image_name
"
sed
-e
"s/<<base_image>>/
$base_image
/g"
-e
"s/<<python_version>>/
$python
/g"
-e
"s/<<run_env>>/
$env
/g"
Dockerfile.runtime_template
>
Dockerfile.tmp
sed
-e
"s/<<base_image>>/
$base_image
/g"
-e
"s/<<python_version>>/
$python
/g"
-e
"s/<<run_env>>/
$env
/g"
tools/
Dockerfile.runtime_template
>
Dockerfile.tmp
docker build
--build-arg
ftp_proxy
=
http://172.19.57.45:3128
--build-arg
https_proxy
=
http://172.19.57.45:3128
--build-arg
http_proxy
=
http://172.19.57.45:3128
--build-arg
HTTP_PROXY
=
http://172.19.57.45:3128
--build-arg
HTTPS_PROXY
=
http://172.19.57.45:3128
-t
$image_name
-f
Dockerfile.tmp
.
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录