-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·39 lines (31 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
executable file
·39 lines (31 loc) · 1.19 KB
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
name = inception
all:
@printf "Launch configuration ${name}...\n"
@bash ./srcs/requirements/wordpress/tools/make_dir.sh
@docker-compose -f ./srcs/docker-compose.yml --env-file srcs/.env up -d
up:
@docker-compose -f ./srcs/docker-compose.yml --env-file srcs/.env up -d
build:
@printf "Building configuration ${name}...\n"
@bash ./srcs/requirements/wordpress/tools/make_dir.sh
@docker-compose -f ./srcs/docker-compose.yml --env-file srcs/.env up -d --build
down:
@printf "Stopping configuration ${name}...\n"
@docker-compose -f ./srcs/docker-compose.yml --env-file srcs/.env down
re: down
@printf "Rebuild configuration ${name}...\n"
@docker-compose -f ./srcs/docker-compose.yml --env-file srcs/.env up -d --build
clean: down
@printf "Cleaning configuration ${name}...\n"
@docker system prune -a
@sudo rm -rf ~/data/wordpress/*
@sudo rm -rf ~/data/mariadb/*
fclean:
@printf "Total clean of all configurations docker\n"
@docker-compose -f ./srcs/docker-compose.yml --env-file srcs/.env down
@docker system prune --all --force --volumes
@docker network prune --force
@docker volume prune --force
@sudo rm -rf ~/data/wordpress/*
@sudo rm -rf ~/data/mariadb/*
.PHONY : all build down re clean fclean