-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04f9f6b
commit 8ea0e65
Showing
3 changed files
with
33 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,30 @@ | ||
# See all tag variants at https://hub.docker.com/r/tensorflow/tensorflow/tags/ | ||
# build with `ln -sf Dockerfile.gpu Dockerfile && docker build --network=host -t {container-name} .` | ||
# NOTE(jwd) - if you wish to use this implementation, you must install nvidia-docker v2.0 | ||
# see https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0) for steps | ||
FROM tensorflow/tensorflow:latest-gpu-py3-jupyter | ||
|
||
## modify below | ||
ARG username=gdl | ||
ARG groupid=1000 | ||
ARG userid=1000 | ||
## end modify | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
graphviz \ | ||
libgraphviz-dev \ | ||
git | ||
|
||
COPY ./requirements.txt / | ||
RUN python3 -m pip install --upgrade pip | ||
RUN pip install -r /requirements.txt | ||
|
||
# -m option creates a fake writable home folder for Jupyter. | ||
RUN groupadd -g $groupid $username \ | ||
&& useradd -m -r -u $userid -g $username $username | ||
USER $username | ||
|
||
VOLUME ["/GDL"] | ||
WORKDIR /GDL | ||
|
||
CMD ["jupyter", "notebook", "--no-browser", "--ip=0.0.0.0", "/GDL"] |
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 @@ | ||
docker build --network=host -t gdl-image-gpu . |
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,2 @@ | ||
./launch-docker-gpu.sh ~/develop/GDL_code | ||
|