forked from hazelcast/hazelcast-jet-code-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (26 loc) · 863 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
38
39
# docker-compose-hazelcast-jet makefile
# Environment Variables
CONTAINER_SERVER = hazelcast-jet
CONTAINER_CLIENT = hazelcast-jet-submit
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
scale :
docker-compose -f hazelcast.yml up --scale $(CONTAINER_SERVER)=5 -d
down :
docker-compose -f hazelcast.yml down
restart :
docker-compose -f hazelcast.yml restart $(CONTAINER_CLIENT)
logServer :
docker-compose -f hazelcast.yml logs $(CONTAINER_SERVER)
logClient :
docker-compose -f hazelcast.yml logs $(CONTAINER_CLIENT)
tailServer :
docker-compose -f hazelcast.yml logs -f $(CONTAINER_SERVER)
tailClient :
docker-compose -f hazelcast.yml logs -f $(CONTAINER_CLIENT)