forked from Trusted-AI/adversarial-robustness-toolbox
/
Makefile
18 lines (13 loc) · 836 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PROJECT_HOME_DIR := ${CURDIR}
build:
# If you have an existing python env folder make sure to first add it to the `.dockerIgnore` \
to reduce the size of your the art docker image
docker build -t project-art-tensorflow .
run-bash:
docker run --rm -it --name project-art-run-bash -v ${PWD}:/project/ -v ~/.art/:/root/.art/ project-art-tensorflow /bin/bash
run-test:
docker run --rm --name project-art-run-test -v ${PWD}:/project/ -v ~/.art/:/root/.art/ project-art-tensorflow
run-pep:
docker run --rm --name project-art-run-pep -v ${PWD}:/project/ -v ~/.art/:/root/.art/ project-art-tensorflow py.test --pep8 -m pep8
run-jupyter:
docker run --rm --name project-art-run-jupyter -v ${PWD}:/project/ -v ~/.art/:/root/.art/ -p 8888:8888 project-art-tensorflow jupyter notebook --ip 0.0.0.0 --no-browser --allow-root