Skip to content

Commit

Permalink
Merge pull request #36 from GeoNode/gs2.24.2
Browse files Browse the repository at this point in the history
Upgrade to GeoServer 2.24.2
  • Loading branch information
giohappy authored Mar 13, 2024
2 parents 05cf135 + ee7e9be commit cf60723
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
40 changes: 20 additions & 20 deletions docker/geoserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG GEOSERVER_CORS_ALLOWED_HEADERS=*
#
# Set GeoServer version and data directory
#
ENV GEOSERVER_VERSION=2.23.3
ENV GEOSERVER_VERSION=2.24.2
ENV GEOSERVER_DATA_DIR="/geoserver_data/data"
ENV GEOSERVER_CORS_ENABLED=$GEOSERVER_CORS_ENABLED
ENV GEOSERVER_CORS_ALLOWED_ORIGINS=$GEOSERVER_CORS_ALLOWED_ORIGINS
Expand All @@ -28,33 +28,33 @@ RUN cd /usr/local/tomcat/webapps \

VOLUME $GEOSERVER_DATA_DIR

# added by simonelanucara https://github.com/simonelanucara
# Optionally add JAI, ImageIO and Marlin Render for improved Geoserver performance
WORKDIR /tmp

RUN wget --no-check-certificate https://repo1.maven.org/maven2/org/postgis/postgis-jdbc/1.3.3/postgis-jdbc-1.3.3.jar -O postgis-jdbc-1.3.3.jar && \
wget --no-check-certificate https://maven.geo-solutions.it/org/hibernatespatial/hibernate-spatial-postgis/1.1.3.2/hibernate-spatial-postgis-1.1.3.2.jar -O hibernate-spatial-postgis-1.1.3.2.jar && \
rm /usr/local/tomcat/webapps/geoserver/WEB-INF/lib/hibernate-spatial-h2-geodb-1.1.3.2.jar && \
mv hibernate-spatial-postgis-1.1.3.2.jar /usr/local/tomcat/webapps/geoserver/WEB-INF/lib/ && \
mv postgis-jdbc-1.3.3.jar /usr/local/tomcat/webapps/geoserver/WEB-INF/lib/
# no longer used since 2.24.2
#ENV GEOSERVER_LIB_DIR="/usr/local/tomcat/webapps/geoserver/WEB-INF/lib"
#RUN wget --no-check-certificate https://repo1.maven.org/maven2/org/postgis/postgis-jdbc/1.3.3/postgis-jdbc-1.3.3.jar -O postgis-jdbc-1.3.3.jar && \
# wget --no-check-certificate https://maven.geo-solutions.it/org/hibernatespatial/hibernate-spatial-postgis/1.1.3.2/hibernate-spatial-postgis-1.1.3.2.jar -O hibernate-spatial-postgis-1.1.3.2.jar && \
# rm $GEOSERVER_LIB_DIR/hibernate-spatial-h2-geodb-1.1.3.2.jar && \
# mv hibernate-spatial-postgis-1.1.3.2.jar $GEOSERVER_LIB_DIR && \
# mv postgis-jdbc-1.3.3.jar $GEOSERVER_LIB_DIR


# copy the script and perform the run of scripts from entrypoint.sh
RUN mkdir -p /usr/local/tomcat/tmp
WORKDIR /usr/local/tomcat/tmp
COPY set_geoserver_auth.sh /usr/local/tomcat/tmp
COPY entrypoint.sh /usr/local/tomcat/tmp
COPY tasks.py /usr/local/tomcat/tmp
COPY set_geoserver_auth.sh \
entrypoint.sh \
tasks.py \
multidump.sh \
multidump-alt.sh \
/usr/local/tomcat/tmp

COPY ./templates /templates
COPY multidump.sh /usr/local/tomcat/tmp
COPY multidump-alt.sh /usr/local/tomcat/tmp

RUN chmod +x /usr/local/tomcat/tmp/set_geoserver_auth.sh \
&& chmod +x /usr/local/tomcat/tmp/entrypoint.sh
RUN chmod +x \
/usr/local/tomcat/tmp/set_geoserver_auth.sh \
/usr/local/tomcat/tmp/entrypoint.sh

RUN apt-get update \
&& apt-get install -y procps less \
&& apt-get install -y python3 python3-pip python3-dev
RUN apt-get install -y procps less && \
apt-get install -y python3 python3-pip python3-dev

RUN pip install j2cli invoke==2.2.0 requests==2.31.0

Expand Down
4 changes: 2 additions & 2 deletions docker/geoserver/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
restart: on-failure

geoserver:
image: geonode/geoserver:2.23.3
image: geonode/geoserver:2.24.2
build:
context: .
links:
Expand All @@ -39,7 +39,7 @@ services:
restart: on-failure

data-dir-conf:
image: geonode/geoserver_data:2.23.3
image: geonode/geoserver_data:2.24.2
container_name: geoserver_data_dir # named data container
entrypoint: sleep infinity
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker/geoserver_data/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN mkdir -p /tmp/geonode/downloaded
ENV TEMP_DOWNLOADED /tmp/geonode/downloaded
WORKDIR ${TEMP_DOWNLOADED}

ENV GEOSERVER_VERSION=2.23.3
ENV GEOSERVER_VERSION=2.24.2

ADD download.sh ${TEMP_DOWNLOADED}
RUN chmod +x ${TEMP_DOWNLOADED}/download.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/geoserver_data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '2'
services:
data_dir_conf:
build: .
image: geonode/geoserver_data:2.23.3
image: geonode/geoserver_data:2.24.2
container_name: geoserver_data_dir
command: /bin/true
volumes:
Expand Down

0 comments on commit cf60723

Please sign in to comment.