Skip to content

Commit

Permalink
Merge pull request #334 from Industrial/master
Browse files Browse the repository at this point in the history
feat(docker): mount examples as volume
  • Loading branch information
carlogrisetti committed Aug 24, 2021
2 parents 4a1ea95 + 03fc395 commit e1dff45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ build-gpu-if-not-built:
if [ ! $$(docker images -q ${GPU_IMAGE}) ]; then $(MAKE) build-gpu; fi;

run-notebook: build-cpu-if-not-built
docker run -it --rm -p=8888:8888 ${CPU_IMAGE} jupyter notebook --ip='*' --port=8888 --no-browser --allow-root ./examples/
docker run -it --rm -p=8888:8888 -v ${PWD}/examples:/examples ${CPU_IMAGE} jupyter notebook --ip='*' --port=8888 --no-browser --allow-root ./examples/

run-docs: build-cpu-if-not-built
if [ $$(docker ps -aq --filter name=tensortrade_docs) ]; then docker rm $$(docker ps -aq --filter name=tensortrade_docs); fi;
Expand All @@ -49,7 +49,7 @@ run-tests: build-cpu-if-not-built
docker run -it --rm ${CPU_IMAGE} make test

run-notebook-gpu: build-gpu-if-not-built
docker run -it --rm -p=8888:8888 ${GPU_IMAGE} jupyter notebook --ip='*' --port=8888 --no-browser --allow-root /examples/
docker run -it --rm -p=8888:8888 -v ${PWD}/examples:/examples ${GPU_IMAGE} jupyter notebook --ip='*' --port=8888 --no-browser --allow-root /examples/

run-docs-gpu: build-gpu-if-not-built
if [ $$(docker ps -aq --filter name=tensortrade_docs) ]; then docker rm $$(docker ps -aq --filter name=tensortrade_docs); fi;
Expand Down

0 comments on commit e1dff45

Please sign in to comment.