1
1
2
2
install :
3
- ./gradlew compileJava installDist shadowJar
3
+ ./gradlew compileJava installDist
4
4
5
5
test :
6
6
./gradlew test -x spotbugsMain -x spotbugsTest -x spotbugsTestFixtures
7
7
8
8
build :
9
- ./gradlew build
9
+ ./gradlew build shadowJar
10
10
docker build . -t hoptimator
11
11
docker build hoptimator-flink-runner -f hoptimator-flink-runner/Dockerfile-flink-runner -t hoptimator-flink-runner
12
12
docker build hoptimator-flink-runner -f hoptimator-flink-runner/Dockerfile-flink-operator -t hoptimator-flink-operator
13
13
14
- bounce : build undeploy deploy deploy-samples deploy-config deploy-demo
14
+ bounce : build undeploy deploy deploy-samples deploy-config
15
15
16
16
clean :
17
17
./gradlew clean
@@ -34,12 +34,6 @@ undeploy: undeploy-config
34
34
35
35
quickstart : build deploy
36
36
37
- deploy-demo : deploy
38
- kubectl apply -f ./deploy/samples/demodb.yaml
39
-
40
- undeploy-demo : undeploy
41
- kubectl delete -f ./deploy/samples/demodb.yaml
42
-
43
37
deploy-samples : deploy
44
38
kubectl wait --for=condition=Established=True \
45
39
crds/subscriptions.hoptimator.linkedin.com \
@@ -72,8 +66,6 @@ deploy-kafka: deploy deploy-flink
72
66
kubectl create namespace kafka || echo " skipping"
73
67
kubectl apply -f " https://strimzi.io/install/latest?namespace=kafka" -n kafka
74
68
kubectl wait --for=condition=Established=True crds/kafkas.kafka.strimzi.io
75
- kubectl apply -f ./deploy/dev
76
- kubectl apply -f ./deploy/samples/demodb.yaml
77
69
kubectl apply -f ./deploy/samples/kafkadb.yaml
78
70
79
71
undeploy-kafka :
@@ -83,7 +75,6 @@ undeploy-kafka:
83
75
kubectl delete -f " https://strimzi.io/install/latest?namespace=kafka" -n kafka || echo " skipping"
84
76
kubectl delete -f ./deploy/samples/kafkadb.yaml || echo " skipping"
85
77
kubectl delete -f ./deploy/samples/demodb.yaml || echo " skipping"
86
- kubectl delete -f ./deploy/dev || echo " skipping"
87
78
kubectl delete namespace kafka || echo " skipping"
88
79
89
80
# Deploys Venice cluster in docker and creates two stores in Venice. Stores are not managed via K8s for now.
@@ -98,11 +89,19 @@ undeploy-venice:
98
89
docker compose -f ./deploy/docker/venice/docker-compose-single-dc-setup.yaml down
99
90
100
91
deploy-dev-environment : deploy deploy-flink deploy-kafka deploy-venice
92
+ kubectl wait --for=condition=Established=True \
93
+ crds/subscriptions.hoptimator.linkedin.com \
94
+ crds/kafkatopics.hoptimator.linkedin.com \
95
+ crds/sqljobs.hoptimator.linkedin.com
96
+ kubectl apply -f ./deploy/dev/
97
+ kubectl apply -f ./deploy/samples/demodb.yaml
101
98
102
99
undeploy-dev-environment : undeploy-venice undeploy-kafka undeploy-flink undeploy
100
+ kubectl delete -f ./deploy/dev || echo " skipping"
101
+ kubectl delete -f ./deploy/samples/demodb.yaml || echo " skipping"
103
102
104
103
# Integration test setup intended to be run locally
105
- integration-tests : deploy-dev-environment deploy-samples
104
+ integration-tests : deploy-dev-environment
106
105
kubectl wait kafka.kafka.strimzi.io/one --for=condition=Ready --timeout=10m -n kafka
107
106
kubectl wait kafkatopic.kafka.strimzi.io/existing-topic-1 --for=condition=Ready --timeout=10m -n kafka
108
107
kubectl wait kafkatopic.kafka.strimzi.io/existing-topic-2 --for=condition=Ready --timeout=10m -n kafka
@@ -111,7 +110,7 @@ integration-tests: deploy-dev-environment deploy-samples
111
110
kill ` cat port-forward.pid`
112
111
113
112
# kind cluster used in github workflow needs to have different routing set up, avoiding the need to forward kafka ports
114
- integration-tests-kind : deploy-dev-environment deploy-samples
113
+ integration-tests-kind : deploy-dev-environment
115
114
kubectl wait kafka.kafka.strimzi.io/one --for=condition=Ready --timeout=10m -n kafka
116
115
kubectl wait kafkatopic.kafka.strimzi.io/existing-topic-1 --for=condition=Ready --timeout=10m -n kafka
117
116
kubectl wait kafkatopic.kafka.strimzi.io/existing-topic-2 --for=condition=Ready --timeout=10m -n kafka
@@ -125,15 +124,15 @@ release:
125
124
test -n " $( VERSION) " # MISSING ARG: $$VERSION
126
125
./gradlew publish
127
126
128
- build-zeppelin :
127
+ build-zeppelin : build
129
128
docker build -t hoptimator-zeppelin -t hoptimator-zeppelin:0.11.2 -f ./deploy/docker/zeppelin/Dockerfile-zeppelin .
130
129
131
130
# attaches to terminal (not run as daemon)
132
- run-zeppelin :
131
+ run-zeppelin : build-zeppelin
133
132
docker run --rm -p 8080:8080 \
134
133
--volume=${HOME} /.kube/config:/opt/zeppelin/.kube/config \
135
134
--add-host=docker-for-desktop:host-gateway \
136
135
--name hoptimator-zeppelin \
137
136
hoptimator-zeppelin
138
137
139
- .PHONY : install test build bounce clean quickstart deploy-config undeploy-config deploy undeploy deploy-demo undeploy-demo deploy- samples undeploy-samples deploy-flink undeploy-flink deploy-kafka undeploy-kafka deploy-venice undeploy-venice build-zeppelin run-zeppelin integration-tests integration-tests-kind deploy-dev-environment undeploy-dev-environment generate-models release
138
+ .PHONY : install test build bounce clean quickstart deploy-config undeploy-config deploy undeploy deploy-samples undeploy-samples deploy-flink undeploy-flink deploy-kafka undeploy-kafka deploy-venice undeploy-venice build-zeppelin run-zeppelin integration-tests integration-tests-kind deploy-dev-environment undeploy-dev-environment generate-models release
0 commit comments