-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 753 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (29 loc) · 753 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
33
34
35
36
37
38
39
tag:= $(shell date +%F-%H%M)
download:
scripts/download.sh
import:
scripts/import.sh
build-app:
cargo build --release
build-pi:
cross build --target aarch64-unknown-linux-gnu --release
cp target/aarch64-unknown-linux-gnu/release/pontjes bin/pontjes_aarch64-unknown-linux-gnu
build-docker:
docker build . -t pontjes:$(tag) -t pontjes:latest
restart:
docker restart pontjes
run:
docker stop pontjes; true
docker rm -f pontjes; true
docker run \
-d \
-p 6376:6376 \
-v $(PWD)/data/:/data \
-v $(PWD)/templates:/templates \
-v $(PWD)/public:/public \
--name pontjes \
--restart always \
pontjes:latest
download-and-import: download import
full: download-and-import build-docker run
update-db: download-and-import restart