forked from trailbehind/DeepOSM
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
40 lines (32 loc) · 1.18 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
# Usage:
# make dev build and run /bin/bash in container.
# make notebook build and run jupyter notebook server.
.PHONY: dev notebook build
help:
@echo 'Makefile for DeepOSM'
@echo ''
@echo 'make dev build and run /bin/bash'
@echo 'make notebook build and run jupyter notebook server'
IMAGE_NAME = deeposm
build:
docker build -t $(IMAGE_NAME) .
dev: build
docker run -v `pwd`:/DeepOSM \
-w /DeepOSM \
-e CPLUS_INCLUDE_PATH=/usr/include/gdal \
-e C_INCLUDE_PATH=/usr/include/gdal \
-e AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) \
-e AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) \
-it $(IMAGE_NAME) /bin/bash
dev-gpu:
docker build -f Dockerfile.devel-gpu -t $(IMAGE_NAME) .
./docker_run_gpu.sh false
update-deeposmorg:
docker build -f Dockerfile.devel-gpu -t $(IMAGE_NAME) .
./docker_run_gpu.sh true
notebook: build
docker run -p 8888:8888 \
-e AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) \
-e AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) \
-v `pwd`:/DeepOSM \
-it $(IMAGE_NAME) /run_jupyter.sh