-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple Dockerfile into build and train
- Loading branch information
Alexandre Lissy
committed
Jun 15, 2020
1 parent
e99b938
commit 97e340b
Showing
9 changed files
with
152 additions
and
108 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
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,35 @@ | ||
FROM tensorflow/tensorflow:1.15.2-gpu-py3 | ||
|
||
ENV DEEPSPEECH_REPO=#DEEPSPEECH_REPO# | ||
ENV DEEPSPEECH_SHA=#DEEPSPEECH_SHA# | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
apt-utils \ | ||
bash-completion \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
git-lfs \ | ||
libbz2-dev \ | ||
locales \ | ||
python3-venv \ | ||
unzip \ | ||
wget | ||
|
||
WORKDIR / | ||
RUN git lfs install | ||
RUN git clone $DEEPSPEECH_REPO | ||
|
||
WORKDIR /DeepSpeech | ||
RUN git checkout $DEEPSPEECH_SHA | ||
|
||
# Setup a virtualenv otherwise we mess with the system and this is BAD. | ||
RUN python3 -m venv venv/ | ||
|
||
ENV VIRTUAL_ENV=/DeepSpeech/venv | ||
ENV PATH=$VIRTUAL_ENV/bin:$PATH | ||
|
||
RUN pip3 install --upgrade pip==20.0.2 wheel==0.34.2 setuptools==46.1.3 | ||
RUN pip3 install --upgrade --force-reinstall -e . | ||
|
||
RUN ./bin/run-ldc93s1.sh |
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,8 @@ | ||
DEEPSPEECH_REPO ?= https://github.com/mozilla/DeepSpeech.git | ||
DEEPSPEECH_SHA ?= origin/master | ||
|
||
Dockerfile%: Dockerfile%.tmpl | ||
sed \ | ||
-e "s|#DEEPSPEECH_REPO#|$(DEEPSPEECH_REPO)|g" \ | ||
-e "s|#DEEPSPEECH_SHA#|$(DEEPSPEECH_SHA)|g" \ | ||
< $< > $@ |
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
build: | ||
template_file: docker-build-base.tyml | ||
dockerfile: "Dockerfile" | ||
dockerfile: "Dockerfile.build" | ||
metadata: | ||
name: "DeepSpeech Docker build" | ||
description: "Testing |docker build| of DeepSpeech" | ||
description: "Testing |docker build| of DeepSpeech build image" |
Oops, something went wrong.