-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (40 loc) · 1.1 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
46
47
48
49
50
51
52
53
KITCHEN=bundle exec kitchen
all: compile
converge: vendor/bundle user_network galaxy
$(KITCHEN) $@
test: vendor/bundle user_network galaxy compile
./gradlew test :beam:sourceJar :beam:javadocJar
$(KITCHEN) $@
compile:
./gradlew :flink-sample:shadowJar :beam:shadowJar
lsflink:
docker exec flink-master /opt/flink-1.1.2/bin/flink list
lstopic:
docker exec flink-master /opt/kafka_2.11-0.10.0.1/bin/kafka-topics.sh \
--zookeeper localhost:2181 --list
list: vendor/bundle
$(KITCHEN) $@
destroy: vendor/bundle
$(KITCHEN) $@
-docker rm flink-master
-docker rm flink-slave1
-docker rm flink-slave2
-docker network rm flink_nw
user_network:
docker network inspect flink_nw || docker network create -d bridge flink_nw
galaxy:
allpids=""; \
for i in ansible/requirements/*.txt; do \
ansible-galaxy install --force --ignore-errors \
-r "$$i" -p roles/ & \
pid=$$!; \
allpids="$$allpids $$pid"; \
done; \
for pid in $$allpids; do \
wait $$pid; \
done;
vendor/bundle: bundle-bin
bundle install --path "$@"
bundle-bin: FORCE
command -v bundle || gem install --user-install --no-ri --no-rdoc
FORCE: