-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (22 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
help:
@cat Makefile
DATA?="${HOME}/Datasets"
GPU?=0
DOCKER_FILE=Dockerfile
DOCKER=GPU=$(GPU) nvidia-docker
BACKEND=tensorflow
PYTHON_VERSION?=3.6
CUDA_VERSION?=9.0
CUDNN_VERSION?=7
TEST=tests/
SRC?=$(shell dirname `pwd`)
build:
docker build -t subsurface-ml-docker --build-arg python_version=$(PYTHON_VERSION) -f $(DOCKER_FILE) .
bash: build
$(DOCKER) run -it -v $(SRC):/home/geo/workspace --env KERAS_BACKEND=$(BACKEND) subsurface-ml-docker bash
ipython: build
$(DOCKER) run -it -v $(SRC):/home/geo/workspace --env KERAS_BACKEND=$(BACKEND) subsurface-ml-docker ipython
notebook: build
$(DOCKER) run -it -v $(SRC):/home/geo/workspace -v $(DATA):/home/geo/data --net=host --env KERAS_BACKEND=$(BACKEND) subsurface-ml-docker
test: build
$(DOCKER) run -it -v $(SRC):/home/geo/workspace --env KERAS_BACKEND=$(BACKEND) subsurface-ml-docker smoke.py $(TEST)