-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 996 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Apache License 2.0
build:
docker build \
--file="$(CURDIR)/Dockerfile" \
--tag="open-space-toolkit-data:latest" \
"$(CURDIR)"
.PHONY: build
start-development dev: build
@ echo "Starting development environment..."
docker run \
-it \
--rm \
--privileged \
--volume="$(CURDIR):/app:delegated" \
--workdir="/app" \
"open-space-toolkit-data:latest" \
/bin/bash
.PHONY: start-development
determine-updates:
@docker run \
--rm \
--privileged \
--volume="$(CURDIR):/app:delegated" \
--workdir="/app" \
"open-space-toolkit-data:latest" \
/bin/bash -c "python3.11 -c \"from downloader import determine_update_paths; print('\n'.join(determine_update_paths()))\""
.PHONY: determine-updates
pull-data:
@ echo "Pulling new data from remotes..."
docker run \
--rm \
--privileged \
--volume="$(CURDIR):/app:delegated" \
--workdir="/app" \
"open-space-toolkit-data:latest" \
/bin/bash -c "python3.11 /app/downloader.py $(FORCE)"
.PHONY: pull-data