Skip to main content

GeoServer Config

Configuration for geoserver and additional resources needed to host stuff there.

Docker in EC2

EC2 Setup

Launch an instance using this user data. It is recommended the instance to have >=8Gb RAM and >=30Gb ephemeral storage. A good alternative is the t3.large which costs ~60 USD/month as of 02/10/2023.

Connect to your instance and add docker to user group by running:

sudo usermod -aG docker $USER
newgrp docker # restarts docker

Launch Geoserver

Pull the geoserver image:

docker pull docker.osgeo.org/geoserver:2.23.x 

Now run the container, installing COG extension and using a local data directory at /MY/DATADIRECTORY. As detailed in the documentation: this setup allows direct management of the file data shared with the container. This setup is also easy to update to use the latest container.

docker run --mount type=bind,src=/MY/DATADIRECTORY,target=/opt/geoserver_data -it -p8080:8080 --env INSTALL_EXTENSIONS=true --env COMMUNITY_EXTENSIONS="cog" --env JAVA_TOOL_OPTIONS="-Xmx4096m" docker.osgeo.org/geoserver:2.23.x

The JAVA_TOOL_OPTIONS is important to increase the maximum hava heap size available for the app. The example command provided earlier sets this limit on ~4Gb For coverage stores, a large heap size is necessary since there is a lot of data to bring. You can adjust it according to your use case. Run java -XX:+PrintFlagsFinal -version | grep MaxHeapSize for getting the max heat space in the docker container.

Optimization of Geoserver ImageMosaic

Example Notebooks

  • Coverage Store using Cog Images: setup a WMS/WMTS-T service using COG rasters located in cloud storage

TODO

Metadata

Release files for geoserver-api 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoserver-api 0.1.0
File Size Uploaded
geoserver_api-0.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geoserver-api 0.1.0
File Interpreter ABI Platform
geoserver_api-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / geoserver_api-0.1.0.tar.gz

Download URL geoserver_api-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
369243b60845ec4cf79ce0a789fbf3107a8b99f7b3ef61a3b07468474edb1f79
BLAKE2b-256 checksum
How to use checksums
b5babf8131aeaf2da4c3981a46a26fcb538b0323746d4b55b3f662f52813dfbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.9 Linux/6.5.0-18-generic

Release files / geoserver_api-0.1.0-py3-none-any.whl

Download URL geoserver_api-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb72cc82503f07ce5e6976f09ff9e0986189d74252051b10815d4f6a5feb7679
BLAKE2b-256 checksum
How to use checksums
1bf3a48fc3695406fc15a00ab09543dc5a153999520aee38068ff7fdff7ecc5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.9 Linux/6.5.0-18-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page