Skip to content

Commit f10e6e8

Browse files
authored
Add Zeppelin (#87)
1 parent c39e65e commit f10e6e8

File tree

5 files changed

+782
-3
lines changed

5 files changed

+782
-3
lines changed

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
install:
3-
./gradlew compileJava installDist
3+
./gradlew compileJava installDist shadowJar
44

55
test:
66
./gradlew test -x spotbugsMain -x spotbugsTest -x spotbugsTestFixtures
@@ -125,4 +125,15 @@ release:
125125
test -n "$(VERSION)" # MISSING ARG: $$VERSION
126126
./gradlew publish
127127

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
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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"]

0 commit comments

Comments
 (0)