forked from ypereirareis/docker-satis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 956 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
.PHONY: build up start stop restart state remove bash satis-build down logs
###############################################
## VARIABLES ##
###############################################
compose=docker-compose
image=ypereirareis/docker-satis
###############################################
## TARGETS ##
###############################################
up:
@echo "== START =="
$(compose) up -d satis
start: up
build:
@$(compose) build --pull
rebuild:
@$(compose) build --pull --no-cache
stop:
@echo "== STOP =="
@$(compose) stop
restart: start
state:
@echo "== STATE =="
@$(compose) ps
remove:
@echo "== REMOVE =="
@$(compose) rm --force
bash:
@echo "== BASH =="
@$(compose) exec satis bash
logs:
@$(compose) logs -ft --tail=1000
down:
@$(compose) down --volumes --remove-orphans
satis-build:
@echo "== SATIS BUILD =="
@$(compose) exec satis ./scripts/build.sh