Browse Source

Makefile improvements

master
Dirk Alders 1 year ago
parent
commit
23651c1978
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      Makefile

+ 11
- 2
Makefile View File

10
 up: ## Starts the docker hub
10
 up: ## Starts the docker hub
11
 	$(DOCKER_COMP) up -d
11
 	$(DOCKER_COMP) up -d
12
 
12
 
13
+up_%: ## Start a single service
14
+	$(DOCKER_COMP) up $(subst up_,,$@)
15
+
13
 down: ## Stops the docker hub
16
 down: ## Stops the docker hub
14
 	$(DOCKER_COMP) down --remove-orphans
17
 	$(DOCKER_COMP) down --remove-orphans
15
 
18
 
19
 status: ## Prompt Containers
22
 status: ## Prompt Containers
20
 	$(DOCKER_COMP) ps
23
 	$(DOCKER_COMP) ps
21
 
24
 
22
-shell_%: ## Connects to the application container
23
-	$(DOCKER_COMP) exec $(subst shell_,,$@) bash
25
+sh_%: ## Connects to the application container
26
+	$(DOCKER_COMP) exec $(subst sh_,,$@) sh
27
+
28
+bash_%: ## Connects to the application container
29
+	$(DOCKER_COMP) exec $(subst bash_,,$@) bash
30
+
31
+logs: ## Displays the logs of the application container
32
+	$(DOCKER_COMP) logs -f
24
 
33
 
25
 logs_%: ## Displays the logs of the application container
34
 logs_%: ## Displays the logs of the application container
26
 	$(DOCKER_COMP) logs -f $(subst logs_,,$@)
35
 	$(DOCKER_COMP) logs -f $(subst logs_,,$@)

Loading…
Cancel
Save