This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
59 lines (45 loc) · 1.4 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
.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: build - build container
build:
docker compose -f local-docker-compose.yml build --no-cache
# target: attach logs - Runs angular logs in the terminal
attach:
docker attach --sig-proxy=false dm-ui
# target: print logs - Print angular logs in the terminal
logs:
docker logs dm-api
# 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: restart - Restart container
restart:
docker compose restart -d
docker attach --sig-proxy=false dm-ui
lint:
pre-commit autoupdate
pre-commit run --all-files
# 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