Skip to content

Commit

Permalink
changed name of custom dockerfile so it matches internal documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
archaeogeek committed May 10, 2023
1 parent c82756f commit 9c48988
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Dockerfile.astun
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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"]

0 comments on commit 9c48988

Please sign in to comment.