Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
bfc44f7a
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
206
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
bfc44f7a
编写于
7月 11, 2022
作者:
H
Hui Zhang
提交者:
GitHub
7月 11, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2127 from buchongyu2/develop
增加困难模式安装PaddleSpeech的Dockerfile
上级
45f51651
5efe6916
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
77 addition
and
0 deletion
+77
-0
docker/ubuntu16-gpu/Dockerfile
docker/ubuntu16-gpu/Dockerfile
+77
-0
未找到文件。
docker/ubuntu16-gpu/Dockerfile
0 → 100644
浏览文件 @
bfc44f7a
FROM
nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu16.04
RUN
echo
"deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
\n\
deb [trusted=true] http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse"
>
/etc/apt/sources.list
RUN
apt-get update
&&
apt-get
install
-y
inetutils-ping wget vim curl cmake git sox libsndfile1 libpng12-dev
\
libpng-dev swig libzip-dev openssl bc libflac
*
libgdk-pixbuf2.0-dev libpango1.0-dev libcairo2-dev
\
libgtk2.0-dev pkg-config zip unzip zlib1g-dev libreadline-dev libbz2-dev liblapack-dev libjpeg-turbo8-dev
\
sudo
lrzsz libsqlite3-dev libx11-dev libsm6 apt-utils libopencv-dev libavcodec-dev libavformat-dev
\
libswscale-dev locales liblzma-dev python-lzma m4 libxext-dev strace libibverbs-dev libpcre3 libpcre3-dev
\
build-essential libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev xz-utils
\
libfreetype6-dev libxslt1-dev libxml2-dev libgeos-3.5.0 libgeos-dev
&&
apt-get
install
-y
--allow-downgrades
\
--allow-change-held-packages
libnccl2 libnccl-dev
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
tzdata
\
&&
/bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
dpkg-reconfigure
-f
noninteractive tzdata
&&
\
cd
/usr/lib/x86_64-linux-gnu
&&
ln
-s
libcudnn.so.8 libcudnn.so
&&
\
cd
/usr/local/cuda-11.2/targets/x86_64-linux/lib
&&
ln
-s
libcublas.so.11.4.1.1043 libcublas.so
&&
\
ln
-s
libcusolver.so.11.1.0.152 libcusolver.so
&&
ln
-s
libcusparse.so.11 libcusparse.so
&&
\
ln
-s
libcufft.so.10.4.1.152 libcufft.so
RUN
echo
"set meta-flag on"
>>
/etc/inputrc
&&
echo
"set convert-meta off"
>>
/etc/inputrc
&&
\
locale-gen en_US.UTF-8
&&
/sbin/ldconfig
-v
&&
groupadd
-g
10001 paddle
&&
\
useradd
-m
-s
/bin/bash
-N
-u
10001 paddle
-g
paddle
&&
chmod
g+w /etc/passwd
&&
\
echo
"paddle ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
ENV
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 TZ=Asia/Shanghai
# official download site: https://www.python.org/ftp/python/3.7.13/Python-3.7.13.tgz
RUN
wget https://cdn.npmmirror.com/binaries/python/3.7.13/Python-3.7.13.tgz
&&
tar
xvf Python-3.7.13.tgz
&&
\
cd
Python-3.7.13
&&
./configure
--prefix
=
/home/paddle/python3.7
&&
make
-j8
&&
make
install
&&
\
rm
-rf
../Python-3.7.13 ../Python-3.7.13.tgz
&&
chown
-R
paddle:paddle /home/paddle/python3.7
RUN
cd
/tmp
&&
wget https://mirrors.sjtug.sjtu.edu.cn/gnu/gmp/gmp-6.1.0.tar.bz2
&&
tar
xvf gmp-6.1.0.tar.bz2
&&
\
cd
gmp-6.1.0
&&
./configure
--prefix
=
/usr/local
&&
make
-j8
&&
make
install
&&
\
rm
-rf
../gmp-6.1.0.tar.bz2 ../gmp-6.1.0
&&
cd
/tmp
&&
\
wget https://www.mpfr.org/mpfr-3.1.4/mpfr-3.1.4.tar.bz2
&&
tar
xvf mpfr-3.1.4.tar.bz2
&&
cd
mpfr-3.1.4
&&
\
./configure
--prefix
=
/usr/local
&&
make
-j8
&&
make
install
&&
rm
-rf
../mpfr-3.1.4.tar.bz2 ../mpfr-3.1.4
&&
\
cd
/tmp
&&
wget https://mirrors.sjtug.sjtu.edu.cn/gnu/mpc/mpc-1.0.3.tar.gz
&&
tar
xvf mpc-1.0.3.tar.gz
&&
\
cd
mpc-1.0.3
&&
./configure
--prefix
=
/usr/local
&&
make
-j8
&&
make
install
&&
\
rm
-rf
../mpc-1.0.3.tar.gz ../mpc-1.0.3
&&
cd
/tmp
&&
\
wget http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/infrastructure/isl-0.18.tar.bz2
&&
\
tar
xvf isl-0.18.tar.bz2
&&
cd
isl-0.18
&&
./configure
--prefix
=
/usr/local
&&
make
-j8
&&
make
install
\
&&
rm
-rf
../isl-0.18.tar.bz2 ../isl-0.18
&&
cd
/tmp
&&
\
wget http://mirrors.ustc.edu.cn/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.gz
--no-check-certificate
&&
\
tar
xvf gcc-8.2.0.tar.gz
&&
cd
gcc-8.2.0
&&
unset
LIBRARY_PATH
&&
./configure
--prefix
=
/home/paddle/gcc82
\
--enable-threads
=
posix
--disable-checking
--disable-multilib
--enable-languages
=
c,c++
--with-gmp
=
/usr/local
\
--with-mpfr
=
/usr/local
--with-mpc
=
/usr/local
--with-isl
=
/usr/local
&&
make
-j8
&&
make
install
&&
\
rm
-rf
../gcc-8.2.0.tar.gz ../gcc-8.2.0
&&
chown
-R
paddle:paddle /home/paddle/gcc82
WORKDIR
/home/paddle
ENV
PATH=/home/paddle/python3.7/bin:/home/paddle/gcc82/bin:${PATH} \
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/cuda-11.2/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}
RUN
mkdir
-p
~/.pip
&&
echo
"[global]"
>
~/.pip/pip.conf
&&
\
echo
"index-url=https://mirror.baidu.com/pypi/simple"
>>
~/.pip/pip.conf
&&
\
echo
"trusted-host=mirror.baidu.com"
>>
~/.pip/pip.conf
&&
\
python3
-m
pip
install
--upgrade
pip
&&
\
pip
install
paddlepaddle-gpu
==
2.3.1.post112
-f
https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
&&
\
rm
-rf
~/.cache/pip
RUN
git clone https://github.com/PaddlePaddle/PaddleSpeech.git
&&
cd
PaddleSpeech
&&
\
pip3
install
pytest-runner paddleaudio
-i
https://pypi.tuna.tsinghua.edu.cn/simple
&&
\
pip3
install
-e
.[develop]
-i
https://pypi.tuna.tsinghua.edu.cn/simple
&&
\
pip3
install
importlib-metadata
==
4.2.0
urllib3
==
1.25.10
-i
https://pypi.tuna.tsinghua.edu.cn/simple
&&
\
rm
-rf
~/.cache/pip
&&
\
sudo cp
-f
/home/paddle/gcc82/lib64/libstdc++.so.6.0.25 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
&&
\
chown
-R
paddle:paddle /home/paddle/PaddleSpeech
USER
paddle
CMD
['bash']
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录