From 23651c19783665a20d274049d8886351751679fe Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Fri, 23 Jun 2023 07:34:58 +0200 Subject: [PATCH] Makefile improvements --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0768f31..a476d14 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ build: up: ## Starts the docker hub $(DOCKER_COMP) up -d +up_%: ## Start a single service + $(DOCKER_COMP) up $(subst up_,,$@) + down: ## Stops the docker hub $(DOCKER_COMP) down --remove-orphans @@ -19,8 +22,14 @@ restart: ## Restarts the docker hub status: ## Prompt Containers $(DOCKER_COMP) ps -shell_%: ## Connects to the application container - $(DOCKER_COMP) exec $(subst shell_,,$@) bash +sh_%: ## Connects to the application container + $(DOCKER_COMP) exec $(subst sh_,,$@) sh + +bash_%: ## Connects to the application container + $(DOCKER_COMP) exec $(subst bash_,,$@) bash + +logs: ## Displays the logs of the application container + $(DOCKER_COMP) logs -f logs_%: ## Displays the logs of the application container $(DOCKER_COMP) logs -f $(subst logs_,,$@)