Quellcode durchsuchen

Makefile improvements

master
Dirk Alders vor 1 Jahr
Ursprung
Commit
23651c1978
1 geänderte Dateien mit 11 neuen und 2 gelöschten Zeilen
  1. 11
    2
      Makefile

+ 11
- 2
Makefile Datei anzeigen

@@ -10,6 +10,9 @@ build:
10 10
 up: ## Starts the docker hub
11 11
 	$(DOCKER_COMP) up -d
12 12
 
13
+up_%: ## Start a single service
14
+	$(DOCKER_COMP) up $(subst up_,,$@)
15
+
13 16
 down: ## Stops the docker hub
14 17
 	$(DOCKER_COMP) down --remove-orphans
15 18
 
@@ -19,8 +22,14 @@ restart: ## Restarts the docker hub
19 22
 status: ## Prompt Containers
20 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 34
 logs_%: ## Displays the logs of the application container
26 35
 	$(DOCKER_COMP) logs -f $(subst logs_,,$@)

Laden…
Abbrechen
Speichern