-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 1.15 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
# | | ___ \ \ | |
# | | ) | |\/ | _ | | / _
# ___ __| __/ | | ( | < __/
# _| _____| _| _| \__,_| _|\_\ \___|
# NAME := transcendance
CLR_RMV := \033[0m
RED := \033[1;31m
GREEN := \033[1;32m
YELLOW := \033[1;33m
BLUE := \033[1;34m
CYAN := \033[1;36m
RM := rm -rf
all:
@echo "$(YELLOW)command: $(CLR_RMV)"
@echo " $(CYAN)make a$(CLR_RMV): $(GREEN)start container attach in terminal$(CLR_RMV)"
@echo " $(CYAN)make d$(CLR_RMV): $(GREEN)start container detach in terminal$(CLR_RMV)"
@echo " $(CYAN)make clean$(CLR_RMV): $(GREEN)down container$(CLR_RMV)"
@echo " $(CYAN)make fclean$(CLR_RMV): $(GREEN)down container and purge docker$(CLR_RMV)"
@echo " $(CYAN)make re$(CLR_RMV): $(GREEN)make fclean + make a$(CLR_RMV)"
a:
@docker compose up --build
d:
@docker compose up --build -d
clean:
@docker compose down -v --rmi all --remove-orphans
fclean: clean
@docker system prune --volumes --all --force
@docker network prune --force
@docker image prune --force
# @$(RM) /goinfre/${USER}/db-data/*
# @$(RM) ./db-data/*
rec: clean a
re: fclean a
.PHONY: all clean fclean re rec a d