File tree Expand file tree Collapse file tree 5 files changed +782
-3
lines changed
hoptimator-k8s/src/main/java/com/linkedin/hoptimator/k8s Expand file tree Collapse file tree 5 files changed +782
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
2
install :
3
- ./gradlew compileJava installDist
3
+ ./gradlew compileJava installDist shadowJar
4
4
5
5
test :
6
6
./gradlew test -x spotbugsMain -x spotbugsTest -x spotbugsTestFixtures
@@ -125,4 +125,15 @@ release:
125
125
test -n " $( VERSION) " # MISSING ARG: $$VERSION
126
126
./gradlew publish
127
127
128
- .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 integration-tests integration-tests-kind deploy-dev-environment undeploy-dev-environment generate-models release
128
+ build-zeppelin :
129
+ docker build -t hoptimator-zeppelin -t hoptimator-zeppelin:0.11.2 -f ./deploy/docker/zeppelin/Dockerfile-zeppelin .
130
+
131
+ # attaches to terminal (not run as daemon)
132
+ run-zeppelin :
133
+ docker run --rm -p 8080:8080 \
134
+ --volume=${HOME} /.kube/config:/opt/zeppelin/.kube/config \
135
+ --add-host=docker-for-desktop:host-gateway \
136
+ --name hoptimator-zeppelin \
137
+ hoptimator-zeppelin
138
+
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
Original file line number Diff line number Diff line change
1
+ # upstream - https://zeppelin.apache.org/docs/0.11.2/
2
+ FROM apache/zeppelin:0.11.2
3
+
4
+ # Add hoptimator fat jar to jdbc interpreter directory
5
+ ADD ./hoptimator-jdbc-driver/build/libs/hoptimator-jdbc-driver-all.jar /opt/zeppelin/interpreter/jdbc/hoptimator-jdbc-driver-all.jar
6
+
7
+ # local copy of hoptimator-cli (for debugging)
8
+ ADD ./hoptimator-cli/build/install/hoptimator-cli /opt/hoptimator/hoptimator-cli/build/install/hoptimator-cli/
9
+ ADD ./hoptimator /opt/hoptimator/
10
+
11
+ # zeppelin server configuration (initialized on start)
12
+ ADD ./deploy/docker/zeppelin/zeppelin-site.xml /opt/zeppelin/conf/zeppelin-site.xml
13
+ # hoptimator specific driver configuration
14
+ ADD ./deploy/docker/zeppelin/interpreter.json /opt/zeppelin/conf/interpreter.json
15
+
16
+ # must be writeable ([re-]written on start + reloads)
17
+ USER root
18
+ RUN chmod 660 /opt/zeppelin/conf/interpreter.json \
19
+ /opt/zeppelin/conf/zeppelin-site.xml
20
+
21
+ # Add overrides for K8s (see: com.linkedin.hoptimator.k8s.K8sConfig)
22
+ # host must match docker argument --add-host=<host>:host-gateway
23
+ ENV KUBECONFIG_BASEPATH="https://docker-for-desktop:6443" \
24
+ ZEPPELIN_HOME="/opt/zeppelin"
25
+
26
+ # restore settings from upstream Dockerfile
27
+ USER 1000
28
+ EXPOSE 8080
29
+ ENTRYPOINT [ "/usr/bin/tini", "--" ]
30
+ WORKDIR ${ZEPPELIN_HOME}
31
+ CMD ["bin/zeppelin.sh"]
You can’t perform that action at this time.
0 commit comments