-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·59 lines (43 loc) · 1.11 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
BASEIMAGE := xycarto/aerial-index-nz
IMAGE := $(BASEIMAGE):2024-02-01
RUN ?= docker run -i --rm \
-u $$(id -u):$$(id -g) \
-e DISPLAY=$$DISPLAY \
-e RUN= \
-v$$(pwd):/work \
--net=host \
-w /work $(IMAGE)
##### LINZ Indexing #####
get-data:
$(RUN) python3 src/get-data.py $(region) $(workunit)
get-regions:
$(RUN) python3 src/get-regions.py
list-region:
$(RUN) python3 src/list-region.py $(region)
index-region:
$(RUN) bash builds/index-region.sh $(region)
merge-region:
$(RUN) bash src/merge-region.sh $(region)
merge-all:
$(RUN) bash src/merge-all.sh
all-regions:
$(RUN) bash builds/index-all-region.sh
##### DOCKER #####
local-edit: docker/Dockerfile
docker run -it --rm --net=host \
--user=$$(id -u):$$(id -g) \
-e DISPLAY=$$DISPLAY \
-e RUN= \
-v$$(pwd):/work \
-w /work \
$(IMAGE)
bash
docker-local: docker/Dockerfile
docker build --tag $(BASEIMAGE) - < docker/Dockerfile && \
docker tag $(BASEIMAGE) $(IMAGE)
docker: docker/Dockerfile
docker build --tag $(BASEIMAGE) - < docker/Dockerfile && \
docker tag $(BASEIMAGE) $(IMAGE) && \
docker push $(IMAGE)
docker-pull:
docker pull $(IMAGE)