-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·58 lines (44 loc) · 1.25 KB
/
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
SHELL := /bin/bash
default: up logs
.PHONY: default
up: docker-compose-up
.PHONY: up
stop: docker-compose-stop
.PHONY: stop
down: docker-compose-down
.PHONY: down
logs: docker-compose-logs
.PHONY: logs
ps: docker-compose-ps
.PHONY: ps
rc: restart-client
.PHONY: rc
docker-compose-up: docker-compose-down
python3 scripts/build.py
docker compose -f docker-compose-dev.yaml up -d --build
.PHONY: docker-compose-up
docker-compose-stop:
docker compose -f docker-compose-dev.yaml stop -t 5
.PHONY: docker-compose-stop
docker-compose-down: docker-compose-stop
docker compose -f docker-compose-dev.yaml down --volumes --remove-orphans
sudo rm -rf .volumes
.PHONY: docker-compose-down
docker-compose-logs:
docker compose -f docker-compose-dev.yaml logs -f
.PHONY: docker-compose-logs
client-logs:
docker compose -f docker-compose-dev.yaml logs -f | grep tp2-client
.PHONY: client-logs
docker-compose-ps:
docker compose -f docker-compose-dev.yaml ps
.PHONY: docker-compose-ps
client ?= original
restart-client:
docker compose -f docker-compose-dev.yaml restart tp2-client_$(client)-1
.PHONY: restart-client
start_clients:
docker ps -a --format "{{.Names}}" | grep "client" | xargs docker start
tests:
docker compose -f docker-compose-tests.yaml up --build
.PHONY: tests