This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
61 lines (46 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
.PHONY: all help build logs up stop down redeploy
# make all - Default Target. Does nothing.
all:
@echo "Angular helper commands."
@echo "For more information try 'make help'."
# target: help - Display callable targets.
help:
@egrep "^# target:" [Mm]akefile
# target: env = generate env files
env:
cp ./etc/env.dist ./.env
# target: build = build all containers
build:
docker compose -f local-docker-compose.yml build --no-cache
# target: app logs - Runs angular logs in the terminal
logs:
docker logs pca-web
# target: attach = attach to target container
attach:
docker attach --sig-proxy=false pca-web
# target: up - Run local web server.
up:
docker compose -f local-docker-compose.yml up -d
# target: stop - Stop all docker containers
stop:
docker compose -f local-docker-compose.yml stop
# target: down - Remove all docker containers
down:
docker compose -f local-docker-compose.yml down
# target: build_prod = build all containers
build_prod:
docker compose -f docker-compose.yml build
# target: up_prod - Run local web server.
up_prod:
docker compose -f docker-compose.yml up -d
# target: stop_prod - Stop all docker containers
stop_prod:
docker compose -f docker-compose.yml stop
# target: down_prod - Remove all docker containers
down_prod:
docker compose -f docker-compose.yml down
# target: redeploy = bring down, rebuild and redeploy all containers
redeploy: down build up
lint:
pre-commit autoupdate
pre-commit run --all-files