forked from hazelcast/hazelcast-jet-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (25 loc) · 846 Bytes
/
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
# docker-compose-hazelcast-jet makefile
# Environment Variables
CONTAINER_SERVER = hazelcast-jet
CONTAINER_CLIENT = hazelcast-jet-submit
CONTAINER_MYSQL = mysql
export JOB_JAR= /jars/$(shell ls -tr jars| tail -2)
.PHONY: up
prep :
echo $(JOB_JAR) file will be submitted to the cluster....
pull :
docker-compose -f hazelcast.yml pull
up : prep pull
docker-compose -f hazelcast.yml up -d
down :
docker-compose -f hazelcast.yml down
restart :
docker-compose -f hazelcast.yml restart $(CONTAINER_CLIENT)
connectDb :
docker-compose -f hazelcast.yml exec $(CONTAINER_MYSQL) mysql -umysqluser -pmysqlpw inventory
tailDb :
docker-compose -f hazelcast.yml logs -f $(CONTAINER_MYSQL)
tailServer :
docker-compose -f hazelcast.yml logs -f $(CONTAINER_SERVER)
tailClient :
docker-compose -f hazelcast.yml logs -f $(CONTAINER_CLIENT)