File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1- ARG BASE_IMAGE=unidata/tomcat-docker:10.1.0-jdk17-openjdk @sha256:8b595bcd8eee410e2d610829b5d4e312d51e3ea6c6bde952a5838845f67a4839
1+ ARG BASE_IMAGE=unidata/tomcat-docker:10.1.0-jdk17-temurin-focal @sha256:99c083fd17d1f8d6c85a0f771039ffb4d2430ff7fd6dabea8eb50f2731328af8
22FROM ${BASE_IMAGE}
33LABEL maintainer="Kyle Wilcox <kyle@axiomdatascience.com>"
44
5- ARG ERDDAP_VERSION=2.22
5+ ARG ERDDAP_VERSION=2.23
66ARG ERDDAP_CONTENT_URL=https://github.com/BobSimons/erddap/releases/download/v$ERDDAP_VERSION/erddapContent.zip
77ARG ERDDAP_WAR_URL=https://github.com/BobSimons/erddap/releases/download/v$ERDDAP_VERSION/erddap.war
88ENV ERDDAP_bigParentDirectory /erddapData
@@ -31,8 +31,9 @@ COPY update-server-xml.sh /opt/update-server-xml.sh
3131RUN /opt/update-server-xml.sh
3232
3333# Default configuration
34+ # Note: Make sure ERDDAP_flagKeyKey is set either in a runtime environment variable or in setup.xml
35+ # If a value is not set, a random value for ERDDAP_flagKeyKey will be generated at runtime.
3436ENV ERDDAP_baseHttpsUrl="https://localhost:8443" \
35- ERDDAP_flagKeyKey="73976bb0-9cd4-11e3-a5e2-0800200c9a66" \
3637 ERDDAP_emailEverythingTo="nobody@example.com" \
3738 ERDDAP_emailDailyReportsTo="nobody@example.com" \
3839 ERDDAP_emailFromAddress="nothing@example.com" \
Original file line number Diff line number Diff line change 66# catalina.sh
77
88if [ " $1 " = ' start-tomcat.sh' ] || [ " $1 " = ' catalina.sh' ]; then
9+ # generate random flagKeyKey if not set
10+ if [ -z " $ERDDAP_flagKeyKey " ] && grep " <flagKeyKey>CHANGE THIS TO YOUR FAVORITE QUOTE</flagKeyKey>" \
11+ " ${CATALINA_HOME} /content/erddap/setup.xml" & > /dev/null; then
12+ echo " flagKeyKey isn't properly set. Generating a random value." >&2
13+ export ERDDAP_flagKeyKey=$( cat /proc/sys/kernel/random/uuid)
14+ fi
915
1016 USER_ID=${TOMCAT_USER_ID:- 1000}
1117 GROUP_ID=${TOMCAT_GROUP_ID:- 1000}
You can’t perform that action at this time.
0 commit comments