-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
75 lines (64 loc) · 1.44 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.PHONY: init
init:
make ui-install
make backend-install
chmod -R 777 ./start-govtool.sh
./start-govtool.sh
docker compose up
.PHONY: up
up:
docker compose up
.PHONY: down
down:
docker compose down
.PHONY: update-govtool
update-govtool:
./start-govtool.sh true
.PHONY: ui-install
ui-install:
make ui-clean
docker run --rm --interactive --tty \
--volume ${PWD}/ui/:/app \
--workdir /app \
--user root \
node:20-alpine yarn install --ignore-engine
.PHONY: backend-install
backend-install:
make backend-clean
docker run --rm --interactive --tty \
--volume ${PWD}/backend/:/app \
--workdir /app \
--user root \
node:22-alpine yarn install --ignore-engine
.PHONY: govtool-install
govtool-install:
rm -rf govtool/frontend/node_modules 2>/dev/null || true
docker run --rm --interactive --tty \
--volume ${PWD}/govtool/frontend/:/app \
--workdir /app \
--user root \
node:20-alpine yarn install --ignore-engine
.PHONY: backend-clean
backend-clean:
rm -rf backend/node_modules 2>/dev/null || true
.PHONY: ui-clean
ui-clean:
rm -rf ui/node_modules 2>/dev/null || true
.PHONY: image-build-ui
image-build-ui:
docker build \
-f ui/Dockerfile.dev \
-t outcomes-pillar-ui \
ui/.
.PHONY: image-build-backend
image-build-backend:
docker build \
-f backend/Dockerfile.dev \
-t outcomes-pillar-backend \
backend/.
.PHONY: image-build-govtool
image-build-govtool:
docker build \
-f ./Dockerfile.govtool \
-t govtool_frontend \
.