-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (32 loc) · 2.25 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
#●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●#
# __ __ __ _ _ ____ ____ ____ __ ____ #
# ( \/ ) /__\ ( )/ )( ___)( ___)(_ _)( ) ( ___) #
# ) ( /(__)\ ) ( )__) )__) _)(_ )(__ )__) #
# (_/\/\_)(__)(__)(_)\_)(____)(__) (____)(____)(____) 𝕓𝕪 𝕁𝕠𝕤𝕖𝕡𝕙 ℂ𝕙𝕖𝕖𝕝 #
#●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●#
#●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●#
#•❅──────✧❅✦❅✧──────❅••❅──────✧❅✦❅✧─COLOR──✧❅✦❅✧──────❅••❅──────✧❅✦❅✧──────❅•#
#●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●●○●○●○●○●○●○●○●○●○●#
NO_COLOR = \033[1;97m
OK_COLOR = \033[1;92m
ERROR_COLOR = \033[1;91m
WARN_COLOR = \033[1;93m
BLUE_COLOR = \033[1;94m
DOCKER_COMPOSE = srcs/docker-compose.yml
all: up
up:
@echo "$(OK_COLOR)Docker compose up [$(DOCKER_COMPOSE)]$(NO_COLOR)"
@docker-compose -f $(DOCKER_COMPOSE) up -d
down-all:
@echo "$(ERROR_COLOR)Docker compose down and removes everything [$(DOCKER_COMPOSE)]$(NO_COLOR)"
@docker-compose -f $(DOCKER_COMPOSE) down -v --remove-orphans --rmi all
down:
@echo "$(ERROR_COLOR)Docker compose down and removes everything [$(DOCKER_COMPOSE)]$(NO_COLOR)"
@docker-compose -f $(DOCKER_COMPOSE) down -v
re-img:
@docker-compose -f $(DOCKER_COMPOSE) up -d --build
clean-cache:
@echo "$(ERROR_COLOR)Cleaning Docker cache$(NO_COLOR)"
@docker system prune -a
re : down up
.PHONY: all up down down-all re-img clean-cache