Change environment name from tf2 to homl3

This commit is contained in:
Aurélien Geron
2021-12-21 11:35:26 +13:00
parent 3552690321
commit 36761f03f1
6 changed files with 14 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ RUN chown ${username}:${username} ${workdir}
USER ${username}
WORKDIR ${workdir}
ENV PATH /opt/conda/envs/tf2/bin:$PATH
ENV PATH /opt/conda/envs/homl3/bin:$PATH
# The config below enables diffing notebooks with nbdiff (and nbdiff support
# in git diff command) after connecting to the container by "make exec" (or

View File

@@ -94,7 +94,7 @@ RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/lib
#################################################
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:/opt/conda/envs/tf2/bin:$PATH
ENV PATH /opt/conda/bin:/opt/conda/envs/homl3/bin:$PATH
# Next we need to install miniconda

View File

@@ -133,7 +133,7 @@ If you are using Docker 19.03 or above, you can run:
```bash
$ cd /path/to/project/handson-ml3
$ docker run --name handson-ml3 --gpus all -p 8888:8888 -p 6006:6006 --log-opt mode=non-blocking --log-opt max-buffer-size=50m -v `pwd`:/home/devel/handson-ml3 ageron/handson-ml3:latest-gpu /opt/conda/envs/tf2/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser
$ docker run --name handson-ml3 --gpus all -p 8888:8888 -p 6006:6006 --log-opt mode=non-blocking --log-opt max-buffer-size=50m -v `pwd`:/home/devel/handson-ml3 ageron/handson-ml3:latest-gpu /opt/conda/envs/homl3/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser
```
If you are using an older version of Docker, then replace `--gpus all` with `--runtime=nvidia`.

View File

@@ -19,9 +19,9 @@ services:
- "6006:6006"
volumes:
- ../:/home/devel/handson-ml3
command: /opt/conda/envs/tf2/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser
command: /opt/conda/envs/homl3/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser
#deploy:
# resources:
# reservations:
# devices:
# - capabilities: [gpu]
# - capabilities: [gpu]