-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (37 loc) · 801 Bytes
/
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
# This is just a helper to shorten the Docker command
CONTAINER_NAME := css-room-escape
init:
@echo "List of commands:"
@echo "build"
@echo "up"
@echo "down"
@echo "exec"
@echo "restart"
@echo "\nusage:"
@echo "make <command>"
build:
@echo "Building container..."
docker compose build
@echo "Build complete"
up:
@echo "Starting container..."
docker compose up -d
@echo "Container started"
down:
@echo "Stopping container..."
docker compose stop
docker compose rm --force
@echo "Container stopped"
exec:
@echo "Entering the container shell..."
docker exec -it ${CONTAINER_NAME} sh
restart:
@echo "Restarting the container..."
make down
make up
@echo "Container restarted"
rebuild:
@echo "Rebuilding the container..."
make down
make build
@echo "Rebuilding finished"