-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 898 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
local= docker-compose -f docker-compose-local.yaml
prod= docker-compose -f docker-compose-prod.yaml
path-cron-prod= ./compact-cron-prod.sh
path-cron-local= ./compact-cron-local.sh
build-prod:
$(prod) build --no-cache
build-local:
$(local) build --no-cache
start-prod:
$(prod) up -d --force-recreate
stop-prod:
$(prod) down
logs-prod:
$(prod) logs -f
logs-local:
$(local) logs -f
start-local:
$(local) up -d --force-recreate
stop-local:
$(local) down
compact-prod:
$(prod) down && $(prod) up fuseki_compact && $(prod) up -d
compact-local:
$(local) down && $(local) up fuseki_compact && $(local) up -d
set-compact-cron-prod:
(crontab -l 2>/dev/null; echo "0 4 * * * $(path-cron-prod) >> /tmp/cronlog.txt") | crontab -
set-compact-cron-local:
(crontab -l 2>/dev/null; echo "0 4 * * * $(path-cron-local) >> /tmp/cronlog.txt") | crontab -
prune-data:
sudo rm -rf ./data