forked from apache/zeppelin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed name of custom dockerfile so it matches internal documentation
- Loading branch information
1 parent
c82756f
commit 9c48988
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|