Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
1346cd35
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看板
未验证
提交
1346cd35
编写于
2月 01, 2023
作者:
P
pangyoki
提交者:
GitHub
2月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[dockerfile] fix python3.7 setuptools bug in release18 dockerfile (#42575)
* fix release dockerfile * fix GPG error in ubuntu18 * fix cpu * fix
上级
838dc660
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
3 deletion
+9
-3
tools/dockerfile/Dockerfile.release18
tools/dockerfile/Dockerfile.release18
+4
-2
tools/dockerfile/ubuntu18_release.sh
tools/dockerfile/ubuntu18_release.sh
+5
-1
未找到文件。
tools/dockerfile/Dockerfile.release18
浏览文件 @
1346cd35
...
@@ -17,7 +17,9 @@ ENV HOME /root
...
@@ -17,7 +17,9 @@ ENV HOME /root
# Add bash enhancements
# Add bash enhancements
COPY paddle/scripts/docker/root/ /root/
COPY paddle/scripts/docker/root/ /root/
RUN apt-get update && \
RUN chmod 777 /tmp
RUN apt-get update --allow-unauthenticated && \
apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && \
apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get update && \
apt-get install -y curl wget vim git unzip unrar tar xz-utils libssl-dev bzip2 gzip \
apt-get install -y curl wget vim git unzip unrar tar xz-utils libssl-dev bzip2 gzip \
...
@@ -48,7 +50,7 @@ ENV PATH=/home/cmake-3.16.0-Linux-x86_64/bin:$PATH
...
@@ -48,7 +50,7 @@ ENV PATH=/home/cmake-3.16.0-Linux-x86_64/bin:$PATH
RUN apt-get update && \
RUN apt-get update && \
apt-get install -y python3.7 python3.7-dev && \
apt-get install -y python3.7 python3.7-dev
python3.7-distutils
&& \
mv /usr/bin/python /usr/bin/python.bak && ln -s /usr/bin/python3.7 /usr/bin/python && \
mv /usr/bin/python /usr/bin/python.bak && ln -s /usr/bin/python3.7 /usr/bin/python && \
mv /usr/bin/python3 /usr/bin/python3.bak && ln -s /usr/bin/python3.7 /usr/bin/python3
mv /usr/bin/python3 /usr/bin/python3.bak && ln -s /usr/bin/python3.7 /usr/bin/python3
...
...
tools/dockerfile/ubuntu18_release.sh
浏览文件 @
1346cd35
...
@@ -80,7 +80,11 @@ function install_whl(){
...
@@ -80,7 +80,11 @@ function install_whl(){
function
set_cuda_env
(){
function
set_cuda_env
(){
if
[[
${
WITH_GPU
}
==
"ON"
]]
;
then
if
[[
${
WITH_GPU
}
==
"ON"
]]
;
then
sed
-i
"s#<setcuda>#ENV LD_LIBRARY_PATH=/usr/local/cuda-
${
ref_CUDA_MAJOR
}
/targets/x86_64-linux/lib:
\$
LD_LIBRARY_PATH #g"
Dockerfile.tmp
sed
-i
"s#<setcuda>#ENV LD_LIBRARY_PATH=/usr/local/cuda-
${
ref_CUDA_MAJOR
}
/targets/x86_64-linux/lib:
\$
LD_LIBRARY_PATH
\\
\\
RUN apt-key del 7fa2af80
\\
RUN rm /etc/apt/sources.list.d/cuda.list
\&\&
rm /etc/apt/sources.list.d/nvidia-ml.list
\\
RUN apt-key adv --fetch-keys https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub #g"
Dockerfile.tmp
else
else
sed
-i
's#<setcuda>##g'
Dockerfile.tmp
sed
-i
's#<setcuda>##g'
Dockerfile.tmp
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录