forked from apache/zeppelin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.zeppelin
36 lines (22 loc) · 1.01 KB
/
Dockerfile.zeppelin
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
FROM tomcat:8.5-jdk8-corretto as builder
ENV ZP_FILE=zeppelin-0.11.0-SNAPSHOT.tar.gz
ENV DATA_DIR=$CATALINA_HOME/webapps/geonetwork/WEB-INF/data
ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -server -Xms512m -Xmx2024m -XX:NewSize=512m -XX:MaxNewSize=1024m -XX:+UseConcMarkSweepGC"
WORKDIR $CATALINA_HOME/webapps
COPY ./$ZP_FILE $CATALINA_HOME/webapps/$ZP_FILE
RUN yum install -y unzip tar gzip hostname
RUN mkdir -p zeppelin && \
tar -xvzf $ZP_FILE -C zeppelin --strip-components=1 && \
rm $ZP_FILE
RUN mkdir -p $CATALINA_HOME/webapps/zeppelin/logs $CATALINA_HOME/webapps/zeppelin/run
FROM tomcat:8.5-jdk8-corretto
COPY --from=builder /usr/local/tomcat/webapps/zeppelin /usr/local/tomcat/webapps/zeppelin
RUN yum install -y hostname
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
#USER 1000
EXPOSE 8081
WORKDIR /usr/local/tomcat/webapps/zeppelin
CMD ["bin/zeppelin.sh"]