|
@@ -1,42 +0,0 @@
|
1
|
|
-DOCKER_COMP = sudo docker-compose
|
2
|
|
-
|
3
|
|
-help:
|
4
|
|
- echo Help is not yet implemented...
|
5
|
|
-
|
6
|
|
-nodered:
|
7
|
|
- if [ ! -d nodered ]; then tar -xvzf nodered.tgz; fi
|
8
|
|
-mqtt:
|
9
|
|
- if [ ! -d mqtt ]; then tar -xvzf mqtt.tgz; fi
|
10
|
|
-build: mqtt nodered
|
11
|
|
- $(DOCKER_COMP) build
|
12
|
|
-
|
13
|
|
-up: mqtt nodered ## Starts the docker hub
|
14
|
|
- $(DOCKER_COMP) up
|
15
|
|
-
|
16
|
|
-up_%: mqtt nodered ## Start a single service
|
17
|
|
- $(DOCKER_COMP) up $(subst up_,,$@)
|
18
|
|
-
|
19
|
|
-down: ## Stops the docker hub
|
20
|
|
- $(DOCKER_COMP) down --remove-orphans
|
21
|
|
-
|
22
|
|
-restart: ## Restarts the docker hub
|
23
|
|
- $(DOCKER_COMP) restart
|
24
|
|
-
|
25
|
|
-status: ## Prompt Containers
|
26
|
|
- $(DOCKER_COMP) ps
|
27
|
|
-
|
28
|
|
-sh_%: ## Connects to the application container
|
29
|
|
- $(DOCKER_COMP) exec $(subst sh_,,$@) sh
|
30
|
|
-
|
31
|
|
-bash_%: ## Connects to the application container
|
32
|
|
- $(DOCKER_COMP) exec $(subst bash_,,$@) bash
|
33
|
|
-
|
34
|
|
-logs: ## Displays the logs of the application container
|
35
|
|
- $(DOCKER_COMP) logs -f
|
36
|
|
-
|
37
|
|
-logs_%: ## Displays the logs of the application container
|
38
|
|
- $(DOCKER_COMP) logs -f $(subst logs_,,$@)
|
39
|
|
-
|
40
|
|
-cleanall:
|
41
|
|
- rm -rf mqtt nodered
|
42
|
|
- sudo docker system prune -a
|