Skip to content

Commit

Permalink
HTM-1296: Update tomcat and optimize docker images (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins authored Nov 5, 2024
1 parent 74da49b commit 73ecea8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 24 deletions.
18 changes: 9 additions & 9 deletions geoserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ COPY maven/ /tmp/

RUN mvn -U clean package --fail-at-end --settings .mvn/settings.xml

FROM tomcat:9.0.95-jre17-temurin AS geoserver
FROM tomcat:9.0.96-jre17-temurin AS geoserver

LABEL org.opencontainers.image.authors="Tailormap/core-developers" \
org.opencontainers.image.description="A GeoServer image for the Tailormap stack" \
org.opencontainers.image.vendor="Tailormap" \
org.opencontainers.image.title="Tailormap data GeoServer" \
org.opencontainers.image.source="https://github.com/Tailormap/tailormap-data/tree/main/geoserver" \
org.opencontainers.image.licenses="GPL-2.0"

ARG TZ="Europe/Amsterdam"
ARG GEOSERVER_DATA_DIR="/opt/geoserver-data"

ENV LANG=en_US.utf8
ENV JDK_JAVA_OPTIONS="-Djava.awt.headless=true \
-Djava.security.egd=file:/dev/./urandom \
-server -Xms256m -Xmx1g \
Expand Down Expand Up @@ -53,11 +60,4 @@ COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d

USER www-data:www-data

LABEL org.opencontainers.image.authors="Tailormap/core-developers" \
org.opencontainers.image.description="A GeoServer image for the Tailormap stack" \
org.opencontainers.image.vendor="Tailormap" \
org.opencontainers.image.title="Tailormap data GeoServer" \
org.opencontainers.image.source="https://github.com/Tailormap/tailormap-data/tree/main/geoserver" \
org.opencontainers.image.licenses="GPL-2.0"

ENTRYPOINT /bin/bash /docker-entrypoint-initdb.d/entrypoint.sh
16 changes: 11 additions & 5 deletions oracle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
FROM ghcr.io/gvenzl/oracle-free:23.5
# https://github.com/gvenzl/oci-oracle-free

LABEL org.opencontainers.image.authors="Tailormap/core-developers" \
org.opencontainers.image.description="An Oracle Free image for the Tailormap stack" \
org.opencontainers.image.vendor="Tailormap" \
org.opencontainers.image.title="Tailormap data Oracle Free" \
org.opencontainers.image.source="https://github.com/Tailormap/tailormap-data/tree/main/oracle" \
org.opencontainers.image.licenses="Apache-2.0"

ARG TZ="Europe/Amsterdam"
ENV LANG=en_US.utf8

USER root

RUN mkdir -p /docker-entrypoint-initdb.d && mkdir -p /tmp/dumpdir && chown oracle /tmp/dumpdir
RUN mkdir -p /docker-entrypoint-initdb.d \
&& mkdir -p /tmp/dumpdir \
&& chown oracle /tmp/dumpdir

COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
COPY ./dumpdir/*.dump /tmp/dumpdir

USER oracle


12 changes: 9 additions & 3 deletions postgis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM postgis/postgis:17-3.4
FROM postgis/postgis:17-3.5

ENV LANG=en_US.utf8
LABEL org.opencontainers.image.authors="Tailormap/core-developers" \
org.opencontainers.image.description="A PostGIS image for the Tailormap stack" \
org.opencontainers.image.vendor="Tailormap" \
org.opencontainers.image.title="Tailormap data PostGIS" \
org.opencontainers.image.source="https://github.com/Tailormap/tailormap-data/tree/main/postgis" \
org.opencontainers.image.licenses="GPL-2.0"

ARG TZ="Europe/Amsterdam"
ENV LANG=en_US.utf8

USER root
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
Expand All @@ -15,4 +21,4 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \

USER $POSTGRES_USER

COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
20 changes: 13 additions & 7 deletions sqlserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
FROM mcr.microsoft.com/mssql/server:2022-latest

ENV LANG=en_US.utf8
ENV ACCEPT_EULA=Y
LABEL org.opencontainers.image.authors="Tailormap/core-developers" \
org.opencontainers.image.description="A SQL Server Developer image for the Tailormap stack" \
org.opencontainers.image.vendor="Tailormap" \
org.opencontainers.image.title="Tailormap data SQL Server" \
org.opencontainers.image.source="https://github.com/Tailormap/tailormap-data/tree/main/sqlserver" \
org.opencontainers.image.licenses="Microsoft EULA"

ARG TZ="Europe/Amsterdam"
ENV LANG=en_US.utf8
ENV ACCEPT_EULA=Y

USER root
COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen "en_US.UTF-8" \
&& apt update && apt upgrade -y && apt autoremove -y && apt autoclean && apt clean && rm -rf /tmp/* && rm -rf /var/tmp/* \
&& rm -rf /var/lib/apt/lists/*

COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
RUN chmod +r /docker-entrypoint-initdb.d/geodata.backup.dump
&& rm -rf /var/lib/apt/lists/* \
&& chmod +r /docker-entrypoint-initdb.d/geodata.backup.dump

USER mssql
ENTRYPOINT /bin/bash ./docker-entrypoint-initdb.d/entrypoint.sh
ENTRYPOINT /bin/bash ./docker-entrypoint-initdb.d/entrypoint.sh

0 comments on commit 73ecea8

Please sign in to comment.