2023-02-21 13:36:06 +01:00
|
|
|
DOCKER_COMPOSE=docker compose -f docker-compose-local.yml
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
|
2023-11-15 08:00:12 +01:00
|
|
|
.PHONY: docker-up docker-up-tibi-dev docker-start docker-start-tibi-dev docker-down docker-ps docker-logs yarn-upgrade fix-permissions
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
include ./.env
|
|
|
|
|
|
|
|
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}'
|
|
|
|
|
2024-02-13 17:36:09 +01:00
|
|
|
|
|
|
|
|
2023-02-21 13:36:06 +01:00
|
|
|
docker-up: ## 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_COMPOSE) --profile tibi-dev up -d
|
|
|
|
|
|
|
|
docker-up-chisel: ## bring up chisel tunnel
|
|
|
|
$(DOCKER_COMPOSE) --profile chisel up -d
|
|
|
|
|
|
|
|
docker-down: ## take docker compose stack down
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel down
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
docker-start: ## start docker compose stack in foreground and take it down after CTRL-C
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) --profile tibi up; $(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel down
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
docker-start-tibi-dev: ## start docker compose stack in foreground and take it down after CTRL-C (with tibi-dev)
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) --profile tibi-dev up; $(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel down
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
docker-ps: ## show container state
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel ps
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
docker-logs: ## show docker logs and follow
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel logs -f --tail=100 || true
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
docker-pull: ## pull docker images
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) --profile tibi-dev --profile tibi --profile chisel pull
|
2023-02-21 13:36:06 +01:00
|
|
|
|
|
|
|
docker-%:
|
2023-11-15 08:00:12 +01:00
|
|
|
$(DOCKER_COMPOSE) $*
|
2023-02-21 13:36:06 +01:00
|
|
|
|
2024-04-09 16:47:44 +02:00
|
|
|
yarn-upgrade: ## interactive yarn upgrade
|
2023-02-21 13:36:06 +01:00
|
|
|
$(DOCKER_COMPOSE) run --rm yarnstart yarn upgrade-interactive
|
|
|
|
$(DOCKER_COMPOSE) restart yarnstart
|
|
|
|
|
2024-04-09 16:47:44 +02:00
|
|
|
fix-permissions: ## set files/directories owner to UID:GID from .env
|
2023-02-21 13:36:06 +01:00
|
|
|
sudo chown -R $(UID):$(GID) ./
|