Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .staroid/docker/zeppelin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | sh - && \
cd zeppelin-web-angular && npm install && npm install -g @angular/cli && npm run build:projects && \
cd ..

# extract war package into container image.
# Otherwise, war package is extracted on startup and that takes lots of time
# while underlying disk io is not too fast with gvisor (sandboxed).
RUN mvn -B -T 2C package -DskipTests -Pweb-angular -Pscala-2.11 -Pbuild-distr -pl '!groovy,!submarine,!livy,!hbase,!pig,!file,!flink,!ignite,!kylin,!lens,!cassandra,!elasticsearch,!bigquery,!alluxio,!scio,!neo4j,!sap,!scalding,!java,!beam,!hazelcastjet,!geode,!ksql,!sparql,!:launcher-docker,!:launcher-cluster,!:launcher-flink' && \
cd zeppelin-distribution/target/zeppelin-0.9.0-SNAPSHOT/zeppelin-0.9.0-SNAPSHOT && \
mkdir -p zeppelin-web/dist && mkdir -p zeppelin-web-angular/dist && \
Expand Down Expand Up @@ -61,6 +64,14 @@ COPY --chown=zeppelin:zeppelin --from=builder /zeppelin/zeppelin-distribution/ta
COPY --chown=zeppelin:zeppelin ./.staroid/conf/log4j.properties /zeppelin/conf/log4j.properties
COPY --chown=zeppelin:zeppelin ./.staroid/k8s/100-interpreter-spec.yaml /zeppelin/k8s/interpreter/100-interpreter-spec.yaml

# create symlink to helium dependencies package (zeppelin-spell, zeppelin-tabledata, zeppelin-vis)
# Reason doing this is, if zeppelin-web is configured from dir, instead of war, it looking for src dir instead of lib dir for this dependency.
# However we don't really ship source code here.
RUN mkdir -p /zeppelin/zeppelin-web/src/app && \
ln -s /zeppelin/lib/node_modules/zeppelin-tabledata /zeppelin/zeppelin-web/src/app/tabledata && \
ln -s /zeppelin/lib/node_modules/zeppelin-vis /zeppelin/zeppelin-web/src/app/visualization && \
ln -s /zeppelin/lib/node_modules/zeppelin-spell /zeppelin/zeppelin-web/src/app/spell

RUN rm -rf /zeppelin/notebook
COPY --chown=zeppelin:zeppelin ./.staroid/notebook /zeppelin/notebook

Expand Down
11 changes: 11 additions & 0 deletions .staroid/docker/zeppelin/Dockerfile_prebuilt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM apache/zeppelin:0.9.0 AS builder
ENV Z_VERSION="0.9.0-preview1" \
Z_HOME="/zeppelin"

# extract war package into container image.
# Otherwise, war package is extracted on startup and that takes lots of time
# while underlying disk io is not too fast with gvisor (sandboxed).
RUN cd $Z_HOME && \
mkdir -p zeppelin-web/dist && mkdir -p zeppelin-web-angular/dist && \
cd zeppelin-web/dist && jar xf ../../zeppelin-web-$Z_VERSION.war && rm -f ../../zeppelin-web-$Z_VERSION.war && \
Expand Down Expand Up @@ -38,6 +41,14 @@ COPY --chown=zeppelin:zeppelin --from=builder /zeppelin /zeppelin/
COPY --chown=zeppelin:zeppelin ./.staroid/conf/log4j.properties /zeppelin/conf/log4j.properties
COPY --chown=zeppelin:zeppelin ./.staroid/k8s/100-interpreter-spec.yaml /zeppelin/k8s/interpreter/100-interpreter-spec.yaml

# create symlink to helium dependencies package (zeppelin-spell, zeppelin-tabledata, zeppelin-vis)
# Reason doing this is, if zeppelin-web is configured from dir, instead of war, it looking for src dir instead of lib dir for this dependency.
# However we don't really ship source code here.
RUN mkdir -p /zeppelin/zeppelin-web/src/app && \
ln -s /zeppelin/lib/node_modules/zeppelin-tabledata /zeppelin/zeppelin-web/src/app/tabledata && \
ln -s /zeppelin/lib/node_modules/zeppelin-vis /zeppelin/zeppelin-web/src/app/visualization && \
ln -s /zeppelin/lib/node_modules/zeppelin-spell /zeppelin/zeppelin-web/src/app/spell

RUN rm -rf /zeppelin/notebook
COPY --chown=zeppelin:zeppelin ./.staroid/notebook /zeppelin/notebook

Expand Down
5 changes: 5 additions & 0 deletions .staroid/k8s/zeppelin-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ data:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>zeppelin.helium.registry</name>
<value>helium,https://s3.amazonaws.com/helium-package/helium.json</value>
<description>Location of external Helium Registry</description>
</property>
</configuration>
---
# ZEPPELIN_JAVA_OPTS env variable to apply on zeppelin-server
Expand Down