-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
61 lines (49 loc) · 1.32 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
59
60
61
APPS = data packages/*
STACKS = common environments
SSH_KEY ?= ~/.ssh/id_rsa.pub
PUB_KEY = $(shell cat $(SSH_KEY))
down:
docker-compose down
.PHONY: down
install:
npm ci
.PHONY: install
run:
docker-compose run \
--rm \
--service-ports \
${SERVICE} \
${CMD}
.PHONY: run
# all services
serve:
docker compose --profile all -f docker-compose.yml -f docker-compose.full.yml up
.PHONY: serve
# all services slimmed down by mocking some more services
slim:
docker compose --profile all -f docker-compose.yml -f docker-compose.slim.yml up
.PHONY: slim
# only services required for appeals/forms-web-app
appeals:
docker compose --profile appeals -f docker-compose.yml -f docker-compose.slim.yml up
.PHONY: appeals
# only services required for documents
documents:
docker compose --profile documents -f docker-compose.yml -f docker-compose.slim.yml up
.PHONY: documents
database:
docker compose --profile database -f docker-compose.yml -f docker-compose.slim.yml up
.PHONY: database
storage:
docker compose --profile storage -f docker-compose.yml -f docker-compose.slim.yml up
.PHONY: storage
c4:
docker compose --profile c4 -f docker-compose.yml -f docker-compose.slim.yml up
.PHONY: c4
uninstall:
rm -Rf node_modules
rm -Rf .git/hooks
for dir in ${APPS}; do \
(cd $${dir} && rm -Rf node_modules); \
done
.PHONY: uninstall