Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
7254220e
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看板
未验证
提交
7254220e
编写于
5月 10, 2021
作者:
J
Jiawei Wang
提交者:
GitHub
5月 10, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1204 from bjjwwang/develop
fix runtime docker generator
上级
50bbbbee
38a657b6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
31 addition
and
5 deletion
+31
-5
tools/Dockerfile.runtime_template
tools/Dockerfile.runtime_template
+4
-0
tools/dockerfiles/build_scripts/install_whl.sh
tools/dockerfiles/build_scripts/install_whl.sh
+5
-5
tools/dockerfiles/build_scripts/soft_link.sh
tools/dockerfiles/build_scripts/soft_link.sh
+22
-0
未找到文件。
tools/Dockerfile.runtime_template
浏览文件 @
7254220e
...
@@ -30,6 +30,10 @@ WORKDIR /home
...
@@ -30,6 +30,10 @@ WORKDIR /home
COPY tools/dockerfiles/build_scripts /build_scripts
COPY tools/dockerfiles/build_scripts /build_scripts
RUN bash /build_scripts/install_whl.sh <<serving_version>> <<paddle_version>> <<run_env>> <<python_version>> && rm -rf /build_scripts
RUN bash /build_scripts/install_whl.sh <<serving_version>> <<paddle_version>> <<run_env>> <<python_version>> && rm -rf /build_scripts
WORKDIR /home
COPY tools/dockerfiles/build_scripts /build_scripts
RUN bash /build_scripts/soft_link.sh <<run_env>>
# install tensorrt
# install tensorrt
WORKDIR /home
WORKDIR /home
COPY tools/dockerfiles/build_scripts /build_scripts
COPY tools/dockerfiles/build_scripts /build_scripts
...
...
tools/dockerfiles/build_scripts/install_whl.sh
浏览文件 @
7254220e
...
@@ -42,7 +42,7 @@ if [[ $SERVING_VERSION == "0.5.0" ]]; then
...
@@ -42,7 +42,7 @@ if [[ $SERVING_VERSION == "0.5.0" ]]; then
serving_bin
=
"https://paddle-serving.bj.bcebos.com/bin/serving-gpu-102-
${
SERVING_VERSION
}
.tar.gz"
serving_bin
=
"https://paddle-serving.bj.bcebos.com/bin/serving-gpu-102-
${
SERVING_VERSION
}
.tar.gz"
elif
[[
"
$RUN_ENV
"
==
"cuda11"
]]
;
then
elif
[[
"
$RUN_ENV
"
==
"cuda11"
]]
;
then
server_release
=
"paddle-serving-server-gpu==
$SERVING_VERSION
.post11"
server_release
=
"paddle-serving-server-gpu==
$SERVING_VERSION
.post11"
serving_bin
=
"https://paddle-serving.bj.bcebos.com/bin/serving-gpu-11-
${
SERVING_VERSION
}
.tar.gz"
serving_bin
=
"https://paddle-serving.bj.bcebos.com/bin/serving-gpu-
cuda
11-
${
SERVING_VERSION
}
.tar.gz"
fi
fi
client_release
=
"paddle-serving-client==
$SERVING_VERSION
"
client_release
=
"paddle-serving-client==
$SERVING_VERSION
"
app_release
=
"paddle-serving-app==0.3.1"
app_release
=
"paddle-serving-app==0.3.1"
...
@@ -58,7 +58,7 @@ elif [[ $SERVING_VERSION == "0.6.0" ]]; then
...
@@ -58,7 +58,7 @@ elif [[ $SERVING_VERSION == "0.6.0" ]]; then
serving_bin
=
"https://paddle-serving.bj.bcebos.com/test-dev/bin/serving-gpu-102-
$SERVING_VERSION
.tar.gz"
serving_bin
=
"https://paddle-serving.bj.bcebos.com/test-dev/bin/serving-gpu-102-
$SERVING_VERSION
.tar.gz"
elif
[[
"
$RUN_ENV
"
==
"cuda11"
]]
;
then
elif
[[
"
$RUN_ENV
"
==
"cuda11"
]]
;
then
server_release
=
"https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_server_gpu-
$SERVING_VERSION
.post11-py3-none-any.whl"
server_release
=
"https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_server_gpu-
$SERVING_VERSION
.post11-py3-none-any.whl"
serving_bin
=
"https://paddle-serving.bj.bcebos.com/test-dev/bin/serving-gpu-11-
$SERVING_VERSION
.tar.gz"
serving_bin
=
"https://paddle-serving.bj.bcebos.com/test-dev/bin/serving-gpu-
cuda
11-
$SERVING_VERSION
.tar.gz"
fi
fi
client_release
=
"https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_client-
$SERVING_VERSION
-cp
$CPYTHON
-none-any.whl"
client_release
=
"https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_client-
$SERVING_VERSION
-cp
$CPYTHON
-none-any.whl"
app_release
=
"https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_app-
$SERVING_VERSION
-py3-none-any.whl"
app_release
=
"https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_app-
$SERVING_VERSION
-py3-none-any.whl"
...
@@ -99,10 +99,10 @@ elif [[ "$RUN_ENV" == "cuda11" ]];then
...
@@ -99,10 +99,10 @@ elif [[ "$RUN_ENV" == "cuda11" ]];then
python
$PYTHON_VERSION
-m
pip
install
paddlepaddle-gpu
==
${
PADDLE_VERSION
}
python
$PYTHON_VERSION
-m
pip
install
paddlepaddle-gpu
==
${
PADDLE_VERSION
}
cd
/usr/local/
cd
/usr/local/
wget
$serving_bin
wget
$serving_bin
tar
xf serving-gpu-11-
${
SERVING_VERSION
}
.tar.gz
tar
xf serving-gpu-
cuda
11-
${
SERVING_VERSION
}
.tar.gz
mv
$PWD
/serving-gpu-11-
${
SERVING_VERSION
}
$PWD
/serving_bin
mv
$PWD
/serving-gpu-
cuda
11-
${
SERVING_VERSION
}
$PWD
/serving_bin
echo
"export SERVING_BIN=
$PWD
/serving_bin/serving"
>>
/root/.bashrc
echo
"export SERVING_BIN=
$PWD
/serving_bin/serving"
>>
/root/.bashrc
rm
-rf
serving-gpu-11-
${
SERVING_VERSION
}
.tar.gz
rm
-rf
serving-gpu-
cuda
11-
${
SERVING_VERSION
}
.tar.gz
cd
-
cd
-
fi
fi
...
...
tools/dockerfiles/build_scripts/soft_link.sh
0 → 100644
浏览文件 @
7254220e
RUN_ENV
=
$1
if
[[
"
$RUN_ENV
"
==
"cuda10.1"
]]
;
then
ln
-sf
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudart.so.10.1 /usr/lib/libcudart.so
&&
\
ln
-sf
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusolver.so.10 /usr/lib/libcusolver.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcuda.so /usr/lib/libcuda.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcublas.so.10 /usr/lib/libcublas.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcudnn.so.7 /usr/lib/libcudnn.so
elif
[[
"
$RUN_ENV
"
==
"cuda10.1"
]]
;
then
ln
-sf
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudart.so.10.2 /usr/lib/libcudart.so
&&
\
ln
-sf
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcusolver.so.10 /usr/lib/libcusolver.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcuda.so /usr/lib/libcuda.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcublas.so.10 /usr/lib/libcublas.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcudnn.so.8 /usr/lib/libcudnn.so
elif
[[
"
$RUN_ENV
"
==
"cuda10.1"
]]
;
then
ln
-sf
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcudart.so.11.0 /usr/lib/libcudart.so
&&
\
ln
-sf
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcusolver.so.10 /usr/lib/libcusolver.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcuda.so /usr/lib/libcuda.so
&&
\
ln
-sf
/usr/local/cuda-11.0/targets/x86_64-linux/lib/libcublas.so.11 /usr/lib/libcublas.so
&&
\
ln
-sf
/usr/lib/x86_64-linux-gnu/libcudnn.so.8 /usr/lib/libcudnn.so
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录