Skip to content

Commit 1f96f6c

Browse files
authored
Merge pull request #96 from axiom-data-science/upgrade-to-2.25.1
Update ERDDAP to 2.25.1
2 parents 9ef83b7 + 09a3fb6 commit 1f96f6c

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

Dockerfile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG BASE_IMAGE=tomcat:10.1.26-jdk21-temurin-jammy
22
#referencing a specific image digest pins our unidata tomcat-docker image to platform amd64 (good)
33
ARG UNIDATA_TOMCAT_IMAGE=unidata/tomcat-docker:10-jdk17@sha256:af7d3fecec753cbd438f25881deeaf48b40ac1f105971d6f300252e104e39fb2
4-
FROM ${UNIDATA_TOMCAT_IMAGE} as unidata-tomcat-image
4+
FROM ${UNIDATA_TOMCAT_IMAGE} AS unidata-tomcat-image
55
FROM ${BASE_IMAGE}
66

77
#use approaches and hardened files from https://github.com/Unidata/tomcat-docker
@@ -39,23 +39,25 @@ COPY --from=unidata-tomcat-image ${CATALINA_HOME}/conf/web.xml ${CATALINA_HOME}/
3939
# Security enhanced server.xml
4040
COPY --from=unidata-tomcat-image ${CATALINA_HOME}/conf/server.xml ${CATALINA_HOME}/conf/
4141

42-
ARG ERDDAP_VERSION=2.24
43-
ARG ERDDAP_CONTENT_URL=https://github.com/ERDDAP/erddap/releases/download/v$ERDDAP_VERSION/erddapContent.zip
44-
ARG ERDDAP_WAR_URL=https://github.com/ERDDAP/erddap/releases/download/v$ERDDAP_VERSION/erddap.war
45-
ENV ERDDAP_bigParentDirectory /erddapData
42+
ARG ERDDAP_VERSION=2.25.1
43+
ARG ERDDAP_CONTENT_VERSION=1.0.0
44+
ARG ERDDAP_WAR_URL="https://github.com/ERDDAP/erddap/releases/download/v${ERDDAP_VERSION}/erddap.war"
45+
ARG ERDDAP_CONTENT_URL="https://github.com/ERDDAP/erddapContent/archive/refs/tags/content${ERDDAP_CONTENT_VERSION}.zip"
46+
ENV ERDDAP_bigParentDirectory=/erddapData
4647

4748
RUN apt-get update && apt-get install -y unzip xmlstarlet \
4849
&& if ! command -v gosu &> /dev/null; then apt-get install -y gosu; fi \
4950
&& rm -rf /var/lib/apt/lists/*
5051

5152
ARG BUST_CACHE=1
5253
RUN \
53-
curl -fSL "${ERDDAP_CONTENT_URL}" -o /erddapContent.zip && \
54-
unzip /erddapContent.zip -d ${CATALINA_HOME} && \
55-
rm /erddapContent.zip && \
56-
curl -fSL "${ERDDAP_WAR_URL}" -o /erddap.war && \
57-
unzip /erddap.war -d ${CATALINA_HOME}/webapps/erddap/ && \
58-
rm /erddap.war && \
54+
mkdir -p /tmp/dl && \
55+
curl -fSL "${ERDDAP_WAR_URL}" -o /tmp/dl/erddap.war && \
56+
unzip /tmp/dl/erddap.war -d ${CATALINA_HOME}/webapps/erddap/ && \
57+
curl -fSL "${ERDDAP_CONTENT_URL}" -o /tmp/dl/erddapContent.zip && \
58+
unzip /tmp/dl/erddapContent.zip -d /tmp/dl/erddapContent && \
59+
find /tmp/dl/erddapContent -type d -name content -exec cp -r "{}" ${CATALINA_HOME} \; && \
60+
rm -rf /tmp/dl && \
5961
sed -i 's#</Context>#<Resources cachingAllowed="true" cacheMaxSize="100000" />\n&#' ${CATALINA_HOME}/conf/context.xml && \
6062
rm -rf /tmp/* /var/tmp/* && \
6163
mkdir -p ${ERDDAP_bigParentDirectory}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ A feature full Tomcat (SSL over APR, etc.) running [ERDDAP](http://coastwatch.pf
44

55
Most recent versions:
66

7-
* `axiom/docker-erddap:latest-jdk21-openjdk` (2.24)
7+
* `axiom/docker-erddap:latest-jdk21-openjdk` (2.25.1)
8+
* `axiom/docker-erddap:2.25.1-jdk21-openjdk`
89
* `axiom/docker-erddap:2.24-jdk21-openjdk`
910
* `axiom/docker-erddap:2.23-jdk17-openjdk`
1011

0 commit comments

Comments
 (0)