-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (43 loc) · 989 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
51
52
53
54
55
56
57
58
build:
docker-compose build --quiet
build-hard:
docker-compose build --no-cache
start:
docker-compose start
up:
docker-compose up -d
up-shell:
docker-compose up
stop:
docker-compose stop
down:
docker-compose down
down-hard:
docker-compose down --volumes
restart:
docker-compose restart
deploy:
make down
make build-hard
make up-shell
dev:
make down
make build
make up
eval:
docker stop $$(docker ps -qa); \
docker rm $$(docker ps -qa); \
docker rmi -f $$(docker images -qa); \
docker volume rm $$(docker volume ls -q); \
docker network rm $$(docker network ls -q) 2>/dev/null
clean:
docker rmi $$(docker images -f "dangling=true" -q)
prune:
docker system prune --all --volumes
fclean:
docker stop $$(docker ps -qa); \
docker volume rm $$(docker volume ls -q); \
docker rmi -f $$(docker images -qa); \
docker rm -vf $$(docker ps -aq); \
make prune
.PHONY : build build-hard up up-verbose start down down-hard stop restart deploy eval prune fclean