This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 1.51 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: chajjar <chajjar@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: Invalid date by Friday, Au #+# #+# #
# Updated: 2024/01/19 16:41:34 by flcollar ### ########.fr #
# #
# **************************************************************************** #
s: start
start: .env
-@docker-compose up --build -t 3
sd: start_detached
start_detached: .env
-@docker-compose up --build -d -t 3
e: stop
stop:
-@docker-compose down -t 3
c: clean
clean: stop
-@docker-compose down -vt 3 --rmi all
fc: fclean
fclean: stop
-@docker rm -f $(shell docker ps -aq)
-@docker rmi -f $(shell docker images -aq)
-@docker volume rm $(shell docker volume ls -q)
-@docker system prune -af --volumes
r: restart
restart: stop start
re: rebuild
rebuild: clean start
ip:
@ifconfig | grep "inet "
.PHONY: s start sd start_detached \
e stop c clean fc fclean \
r restart re rebuild ip
.DEFAULT_GOAL := start