forked from mapbox/robosat
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (19 loc) · 710 Bytes
/
Makefile
File metadata and controls
33 lines (19 loc) · 710 Bytes
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
dockerimage ?= mapbox/robosat
dockerfile ?= docker/Dockerfile.cpu
srcdir ?= $(shell pwd)
datadir ?= $(shell pwd)
install:
@docker build -t $(dockerimage) -f $(dockerfile) .
i: install
update:
@docker build -t $(dockerimage) -f $(dockerfile) . --pull --no-cache
u: update
run:
@docker run -it --rm --ipc="host" --network="host" -v $(srcdir)/robosat:/usr/src/app/robosat -v $(datadir):/data --entrypoint=/bin/bash $(dockerimage)
r: run
publish:
@docker image save $(dockerimage) \
| pv -N "Publish $(dockerimage) to $(sshopts)" -s $(shell docker image inspect $(dockerimage) --format "{{.Size}}") \
| ssh $(sshopts) "docker image load"
p: publish
.PHONY: install i run r update u publish p