4
Home
Nils Bühner edited this page 2021-03-26 14:25:23 +01:00
Welcome to the docker wiki!
We currently have to approaches for a docker image:
Comparison of the possibilities of the Dockerfile:
| Feature | PR1 (terrestris) | PR2 (geosolutions) |
|---|---|---|
| Build image with custom GS version (docker will download WAR) |
✔️docker build -t geoserver:test --build-arg GEOSERVER_VERSION=2.18.2 . |
✔️docker build -t geoserver:test --build-arg GEOSERVER_WEBAPP_SRC=https://downloads.sourceforge.net/project/geoserver/GeoServer/2.18.2/geoserver-2.18.2-war.zip . |
| Build image with custom (local) WAR file (or zipped WAR) |
✔️docker build -t geoserver:test --build-arg GEOSERVER_WAR_SRC="./resources/geoserver.zip" . |
✔️docker build -t geoserver:test --build-arg GEOSERVER_WEBAPP_SRC=./resources/geoserver.zip . |
| The WAR source can either be a ZIP or a WAR file |
✔️ | ✔️ |
| Burn extensions to the image (docker will download JARs) |
❌ | |
| Burn extensions to the image (local JARs/no download) |
❌ (via build arguments) ✔️ (if JARs are included in a local WAR file build) |
|
| Control whether CORS should be enabled in the resulting image |
✔️ | ❌ |
| Allow to burn a local data dir to the resulting image |
❌ | ✔️ |
| Allow to add custom fonts to the resulting image |
❌ | ❌ |
Comparison of the resulting Dockerimages:
| Feature | PR1 (terrestris) | PR2 (geosolutions) |
|---|---|---|
| Image Size | 762 MB | 1,1 GB |
| Starts up with the default data directory | ❌ | ✔️ |
| Install extensions dynamically on startup (based on given configuration/env) |
✔️docker run -it --rm -p 8888:8080 --name geoserver -e DOWNLOAD_EXTENSIONS='true' -e STABLE_EXTENSIONS='wps,csw' terrestris/geoserver:2.19.0_GSIP-192 |
❌ |
| Allows basic configuration via environment variables (GS Data dir, Memory Size) |
✔️ | ✔️ |