Füge Initialisierungsziel zu Makefile hinzu und aktualisiere Docker-Befehle

This commit is contained in:
Sebastian Frank 2025-03-27 17:07:33 +00:00
parent cf1acc1d80
commit f66c1fc078
Signed by: apairon
SSH Key Fingerprint: SHA256:lYVOnGlR42QHj7wuqfFgGw8cKbfyZUpzeRDGVBBAHQU
2 changed files with 7 additions and 6 deletions

Binary file not shown.

@ -2,7 +2,7 @@ DOCKER_COMPOSE=docker compose -f docker-compose-local.yml
.DEFAULT_GOAL := help
.PHONY: docker-up docker-up-tibi-dev docker-start docker-start-tibi-dev docker-down docker-ps docker-logs yarn-upgrade fix-permissions
.PHONY: init docker-up docker-up-tibi-dev docker-start docker-start-tibi-dev docker-down docker-ps docker-logs yarn-upgrade fix-permissions
include ./.env
@ -10,12 +10,13 @@ help: ## show this help
@echo MAKE TARGETS
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
init: ## initialize required directories
mkdir -p tmp/mongo-data tmp/.npm tmp/.yarn tmp/nonexistent
docker-up: ## bring docker compose stack up in background
docker-up: init ## bring docker compose stack up in background
$(DOCKER_COMPOSE) --profile tibi up -d
docker-up-tibi-dev: ## bring docker compose stack up in background with tibi-dev
docker-up-tibi-dev: init ## bring docker compose stack up in background with tibi-dev
$(DOCKER_COMPOSE) --profile tibi-dev up -d
docker-up-chisel: ## bring up chisel tunnel
@ -24,10 +25,10 @@ docker-up-chisel: ## bring up chisel tunnel
docker-down: ## take docker compose stack down
$(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel down
docker-start: ## start docker compose stack in foreground and take it down after CTRL-C
docker-start: init ## start docker compose stack in foreground and take it down after CTRL-C
$(DOCKER_COMPOSE) --profile tibi up; $(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel down
docker-start-tibi-dev: ## start docker compose stack in foreground and take it down after CTRL-C (with tibi-dev)
docker-start-tibi-dev: init ## start docker compose stack in foreground and take it down after CTRL-C (with tibi-dev)
$(DOCKER_COMPOSE) --profile tibi-dev up; $(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel down
docker-ps: ## show container state