Add arbitrary filesystem resource overlays in build
3 files modified
1 files added
| | |
| | | resources/geoserver.zip |
| | | resources/plugins/*.zip |
| | | resources/*jdk-*-linux-x64.tar.gz |
| | | resources/jce_policy.zip |
| | | resources/* |
| | | !resources/plugins/ |
| | | resources/plugins/* |
| | | !resources/plugins/README.txt |
| | | !resources/overlays/ |
| | | resources/overlays/* |
| | | !resources/overlays/README.txt |
| | | .idea |
| | |
| | | done; \ |
| | | fi |
| | | |
| | | # Overlay files and directories in resources/overlays if they exist |
| | | RUN rm /tmp/resources/overlays/README.txt && \ |
| | | if ls /tmp/resources/overlays/* > /dev/null 2>&1; then \ |
| | | cp -rf /tmp/resources/overlays/* /; \ |
| | | fi; |
| | | |
| | | # Delete resources after installation |
| | | RUN rm -rf /tmp/resources |
| | |
| | | `resources/plugins` before building. You should also download the matching version |
| | | GeoServer WAR zip file to `resources/geoserver.zip`. |
| | | |
| | | ### Building with file system overlays (advanced) |
| | | |
| | | The contents of `resources/overlays` will be copied to the image file system |
| | | during the build. For example, to include a static Tomcat `setenv.sh`, |
| | | create the file at `resources/overlays/usr/local/tomcat/bin/setenv.sh`. |
| | | |
| | | You can use this functionality to write a static GeoServer directory to |
| | | `/opt/geoserver/data_dir`, include additional jar files, and more. |
| | | |
| | | Overlay files will overwrite existing destination files, so be careful! |
| | | |
| | | ## Run |
| | | |
| | | You probably want to also have postgis running too. To create a running |
New file |
| | |
| | | To include files in the container file system at arbitrary locations, build |
| | | a directory structure from / here and include the files at the desired location. |
| | | |
| | | For example, to include a static Tomcat setenv.sh in the build, place it at: |
| | | |
| | | resources/overlays/usr/local/tomcat/bin/setenv.sh |
| | | |
| | | Other overlay examples include static GeoServer data directories, the Marlin renderer, etc. |
| | | |
| | | Note that overlay files will overwrite existing destination files, and that |
| | | files in the overlay root will be copied to the container root |
| | | (e.g. resources/overlay/somefile.txt will be copied to /somefile.txt). |
| | | |
| | | Be careful! |