-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Initial version of Docker images for (CPU and GPU versions) (#…
- Loading branch information
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Kaldi Docker Images | ||
|
||
Sample usage of the CPU based images: | ||
``` | ||
docker run -it mdoulaty/kaldi:latest bash | ||
``` | ||
|
||
Sample usage of the GPU based images: | ||
|
||
Note: use [nvidia-docker](https://github.com/NVIDIA/nvidia-docker) to run the GPU images. | ||
|
||
``` | ||
docker run -it --runtime=nvidia mdoulaty/kaldi:gpu-latest bash | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
FROM debian:9.8 | ||
LABEL maintainer="mdoulaty@gmail.com" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
make \ | ||
automake \ | ||
autoconf \ | ||
bzip2 \ | ||
unzip \ | ||
wget \ | ||
sox \ | ||
libtool \ | ||
git \ | ||
subversion \ | ||
python2.7 \ | ||
python3 \ | ||
zlib1g-dev \ | ||
ca-certificates \ | ||
patch \ | ||
vim && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN ln -s /usr/bin/python2.7 /usr/bin/python | ||
|
||
RUN git clone https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \ | ||
cd /opt/kaldi && \ | ||
cd /opt/kaldi/tools && \ | ||
./extras/install_mkl.sh && \ | ||
make -j $(nproc) && \ | ||
cd /opt/kaldi/src && \ | ||
./configure --shared && \ | ||
make depend -j $(nproc) && \ | ||
make -j $(nproc) | ||
|
||
WORKDIR /opt/kaldi/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 | ||
LABEL maintainer="mdoulaty@gmail.com" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
make \ | ||
automake \ | ||
autoconf \ | ||
bzip2 \ | ||
unzip \ | ||
wget \ | ||
sox \ | ||
libtool \ | ||
git \ | ||
subversion \ | ||
python2.7 \ | ||
python3 \ | ||
zlib1g-dev \ | ||
ca-certificates \ | ||
patch \ | ||
vim && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN ln -s /usr/bin/python2.7 /usr/bin/python | ||
|
||
RUN git clone https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \ | ||
cd /opt/kaldi && \ | ||
cd /opt/kaldi/tools && \ | ||
./extras/install_mkl.sh && \ | ||
make -j $(nproc) && \ | ||
cd /opt/kaldi/src && \ | ||
./configure --shared --use-cuda && \ | ||
make depend -j $(nproc) && \ | ||
make -j $(nproc) | ||
|
||
WORKDIR /opt/kaldi/ |