mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-28 10:40:26 +01:00
Change environment name from tf2 to homl3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user