This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
45 lines (36 loc) · 1.59 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: build up build-twin-robot restart-twin
STACK ?= docker-compose.dev.yml
build:
(cd planner_reasoner && make build)
(cd deployment/maven-base && make build)
(cd deployment/eclipse-mosquitto && make build)
(cd deployment/jena-fuseki && make build)
(cd lyo-services && make build)
# (cd flink-jobs && make build)
# (cd robot-emulator && make build)
push:
(cd planner_reasoner && make push)
(cd deployment/maven-base && make push)
(cd deployment/eclipse-mosquitto && make push)
(cd deployment/jena-fuseki && make push)
(cd lyo-services && make push)
#(cd flink-jobs && make push)
(cd robot-emulator && make push)
restart-swarm:
(cd deployment && docker service rm `docker service ls --filter name=scott -q`) || true
(cd deployment && docker stack deploy -c $(STACK) --prune scott)
restart-swarm-full:
(cd deployment && docker swarm init) || true
(cd deployment && docker service rm `docker service ls --filter name=scott -q` && sleep 1) || true
(cd deployment && docker stack rm scott && sleep 10) || true
(cd deployment && docker stack deploy -c $(STACK) --prune scott)
build-twin-robot:
(cd lyo-services && make build-twin-robot)
restart-twin-robot:
(cd deployment && docker service rm `docker service ls --filter name=scott_sandbox-twin -q` && sleep 1) || true
(cd deployment && docker stack deploy -c $(STACK) --prune scott)
build-whc:
(cd lyo-services && make build-whc)
restart-whc:
(cd deployment && docker service rm `docker service ls --filter name=scott_sandbox-whc -q` && sleep 1) || true
(cd deployment && docker stack deploy -c $(STACK) --prune scott)