-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (22 loc) · 939 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
help: ## View all make targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
stop: ## Stop the container stack
@echo "Stopping all containers..."
docker compose stop && docker compose down
build: ## Build the container stack
@echo "Building containers..."
sudo docker compose build
start: ## Start the container stack
@echo "Starting up containers..."
make build && sudo docker compose up -d
start_debug: ## Start the container stack
@echo "Starting up containers..."
docker compose build --progress=plain && docker compose up
clean: ## Clean out unused docker(-compose) files
@echo "Removing unused docker files..."
docker system prune -af
update: ## Update repository to latest version
@echo "Updating repository to latest version..."
@echo "Warning: This will shutdown all containers."
make stop && git fetch && git pull