Makefile improvements
This commit is contained in:
parent
ab995f709d
commit
23651c1978
13
Makefile
13
Makefile
@ -10,6 +10,9 @@ build:
|
|||||||
up: ## Starts the docker hub
|
up: ## Starts the docker hub
|
||||||
$(DOCKER_COMP) up -d
|
$(DOCKER_COMP) up -d
|
||||||
|
|
||||||
|
up_%: ## Start a single service
|
||||||
|
$(DOCKER_COMP) up $(subst up_,,$@)
|
||||||
|
|
||||||
down: ## Stops the docker hub
|
down: ## Stops the docker hub
|
||||||
$(DOCKER_COMP) down --remove-orphans
|
$(DOCKER_COMP) down --remove-orphans
|
||||||
|
|
||||||
@ -19,8 +22,14 @@ restart: ## Restarts the docker hub
|
|||||||
status: ## Prompt Containers
|
status: ## Prompt Containers
|
||||||
$(DOCKER_COMP) ps
|
$(DOCKER_COMP) ps
|
||||||
|
|
||||||
shell_%: ## Connects to the application container
|
sh_%: ## Connects to the application container
|
||||||
$(DOCKER_COMP) exec $(subst shell_,,$@) bash
|
$(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
|
logs_%: ## Displays the logs of the application container
|
||||||
$(DOCKER_COMP) logs -f $(subst logs_,,$@)
|
$(DOCKER_COMP) logs -f $(subst logs_,,$@)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user