-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First refactoring of Docker base images * fix nginx image and tags
- Loading branch information
Showing
23 changed files
with
42 additions
and
1,140 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
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
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 |
---|---|---|
@@ -1,63 +1,2 @@ | ||
ARG IMAGE_VERSION=9.0-jdk11-openjdk-slim-bullseye | ||
ARG JAVA_HOME=/usr/local/openjdk-11 | ||
FROM tomcat:$IMAGE_VERSION | ||
LABEL GeoNode Development Team | ||
|
||
ARG GEOSERVER_CORS_ENABLED=False | ||
ARG GEOSERVER_CORS_ALLOWED_ORIGINS=* | ||
ARG GEOSERVER_CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,HEAD,OPTIONS | ||
ARG GEOSERVER_CORS_ALLOWED_HEADERS=* | ||
# | ||
# Set GeoServer version and data directory | ||
# | ||
ENV GEOSERVER_VERSION=2.23.0 | ||
ENV GEOSERVER_DATA_DIR="/geoserver_data/data" | ||
ENV GEOSERVER_CORS_ENABLED=$GEOSERVER_CORS_ENABLED | ||
ENV GEOSERVER_CORS_ALLOWED_ORIGINS=$GEOSERVER_CORS_ALLOWED_ORIGINS | ||
ENV GEOSERVER_CORS_ALLOWED_METHODS=$GEOSERVER_CORS_ALLOWED_METHODS | ||
ENV GEOSERVER_CORS_ALLOWED_HEADERS=$GEOSERVER_CORS_ALLOWED_HEADERS | ||
# | ||
# Download and install GeoServer | ||
# | ||
RUN apt-get update -y && apt-get install curl wget unzip -y | ||
RUN cd /usr/local/tomcat/webapps \ | ||
&& wget --no-check-certificate --progress=bar:force:noscroll https://artifacts.geonode.org/geoserver/${GEOSERVER_VERSION}/geoserver.war -O geoserver.war \ | ||
&& unzip -q geoserver.war -d geoserver \ | ||
&& rm geoserver.war \ | ||
&& mkdir -p $GEOSERVER_DATA_DIR | ||
|
||
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/ | ||
|
||
|
||
# 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 ./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 apt-get update \ | ||
&& 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 | ||
|
||
ENV JAVA_OPTS="-Djava.awt.headless=true -Dgwc.context.suffix=gwc -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=/var/log/jvm.log -XX:MaxPermSize=512m -XX:PermSize=256m -Xms512m -Xmx2048m -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4 -Dfile.encoding=UTF8 -Djavax.servlet.request.encoding=UTF-8 -Djavax.servlet.response.encoding=UTF-8 -Duser.timezone=GMT -Dorg.geotools.shapefile.datetime=false -DGS-SHAPEFILE-CHARSET=UTF-8 -DGEOSERVER_CSRF_DISABLED=true -DPRINT_BASE_URL=http://geoserver:8080/geoserver/pdf -Xbootclasspath/a:/usr/local/tomcat/webapps/geoserver/WEB-INF/lib/marlin-0.9.3.jar -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine" | ||
|
||
CMD ["/usr/local/tomcat/tmp/entrypoint.sh"] | ||
ARG BASE_IMAGE_VERSION | ||
FROM geonode/geoserver:${BASE_IMAGE_VERSION} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.