docker-geoserver
所属分类:Docker
开发工具:Dockerfile
文件大小:28KB
下载次数:0
上传日期:2023-05-25 08:18:01
上 传 者:
sh-1993
说明: docker地理服务器,,
(docker-geoserver,,)
文件列表:
2.18.7 (0, 2023-08-31)
2.18.7\Dockerfile (2788, 2023-08-31)
2.18.7\start.sh (1322, 2023-08-31)
2.19.7 (0, 2023-08-31)
2.19.7\Dockerfile (2788, 2023-08-31)
2.19.7\start.sh (1322, 2023-08-31)
2.20.7 (0, 2023-08-31)
2.20.7\Dockerfile (2788, 2023-08-31)
2.20.7\start.sh (1322, 2023-08-31)
2.21.5 (0, 2023-08-31)
2.21.5\Dockerfile (2788, 2023-08-31)
2.21.5\start.sh (1322, 2023-08-31)
2.22.5 (0, 2023-08-31)
2.22.5\Dockerfile (2788, 2023-08-31)
2.22.5\start.sh (1322, 2023-08-31)
2.23.2 (0, 2023-08-31)
2.23.2\Dockerfile (2917, 2023-08-31)
2.23.2\start.sh (1322, 2023-08-31)
LICENSE.txt (1081, 2023-08-31)
aws (0, 2023-08-31)
aws\.ebextensions (0, 2023-08-31)
aws\.ebextensions\01_env.config (357, 2023-08-31)
aws\.ebextensions\02_storage-efs-mountfilesystem.config (4502, 2023-08-31)
aws\.ebextensions\03_reload-geoserver-on-change.config (347, 2023-08-31)
aws\Dockerrun.aws.json (405, 2023-08-31)
build_exts_dir.sh (2206, 2023-08-31)
ecw (0, 2023-08-31)
ecw\Dockerfile (1076, 2023-08-31)
extensions (721, 2023-08-31)
h2-vector (0, 2023-08-31)
h2-vector\Dockerfile (805, 2023-08-31)
h2-vector\data_dir (51, 2023-08-31)
h2-vector\docker-compose.yml (437, 2023-08-31)
h2-vector\run.sh (115, 2023-08-31)
... ...
# docker-geoserver
Dockerized GeoServer.
## Features
* Built on top of [Docker's official tomcat image](https://hub.docker.com/_/tomcat/). Using `tomcat:9-jre17` as base for versions 2.23.1 and above, and `tomcat:9-jdk11` for versions below 2.23.1.
* Running tomcat process as non-root user.
* Separate GEOSERVER_DATA_DIR location (on /var/local/geoserver).
* Configurable extensions.
* Injectable UID and GID for better mounted volume management.
* [CORS ready](http://enable-cors.org/server_tomcat.html).
* Taken care of [JVM Options](http://docs.geoserver.org/latest/en/user/production/container.html).
* Automatic installation of [Microsoft Core Fonts](http://www.microsoft.com/typography/fonts/web.aspx) for better labelling compatibility.
* Custom geoserver deployment path
* docker health check
* AWS configuration files and scripts in order to deploy easily using [Elastic Beanstalk](https://aws.amazon.com/documentation/elastic-beanstalk/). See [github repo](https://github.com/oscarfonts/docker-geoserver/blob/master/aws/README.md). Thanks to @victorzinho
## Trusted builds/ows?service=WMS&version=1.3.0&request=GetCapabilities
Latest versions with [automated builds](https://hub.docker.com/r/oscarfonts/geoserver/) available on [docker registry](https://registry.hub.docker.com/):
* [`latest`, `2.23.2` (*2.23.2/Dockerfile*)](https://github.com/oscarfonts/docker-geoserver/blob/master/2.23.2/Dockerfile)
* [`2.22.5` (*2.22.5/Dockerfile*)](https://github.com/oscarfonts/docker-geoserver/blob/master/2.22.5/Dockerfile)
Security patches for older versions:
* [`2.21.5` (*2.21.5/Dockerfile*)](https://github.com/oscarfonts/docker-geoserver/blob/master/2.21.5/Dockerfile)
* [`2.20.7` (*2.20.7/Dockerfile*)](https://github.com/oscarfonts/docker-geoserver/blob/master/2.20.7/Dockerfile)
* [`2.19.7` (*2.19.7/Dockerfile*)](https://github.com/oscarfonts/docker-geoserver/blob/master/2.19.7/Dockerfile)
* [`2.18.7` (*2.18.7/Dockerfile*)](https://github.com/oscarfonts/docker-geoserver/blob/master/2.18.7/Dockerfile)
Other experimental dockerfiles (not automated build):
* [`oracle`](https://github.com/oscarfonts/docker-geoserver/blob/master/oracle/Dockerfile). Uses [wnameless/oracle-xe-11g](https://hub.docker.com/r/wnameless/oracle-xe-11g/), needs ojdbc7.jar and [setting up a database](https://github.com/oscarfonts/docker-geoserver/blob/master/oracle/setup.sql). See [the run commands](https://github.com/oscarfonts/docker-geoserver/blob/master/oracle/run.sh).
* [`h2-vector`](https://github.com/oscarfonts/docker-geoserver/blob/master/h2-vector/Dockerfile). Plays nicely with [oscarfonts/h2:geodb](https://hub.docker.com/r/oscarfonts/h2/tags/), and includes sample scripts for docker-compose and systemd.
## Running
Get the image:
```bash
docker pull oscarfonts/geoserver
```
### Custom GEOSERVER_DATA_DIR
Run as a service, exposing port 8080 and using a hosted GEOSERVER_DATA_DIR:
```bash
docker run -d -p 8080:8080 -v ${PWD}/data_dir:/var/local/geoserver oscarfonts/geoserver
```
### Custom base path
* On build time, set the GEOSERVER_PATH arg to change the geoserver base path. It defaults to `/geoserver`.
* On run time, set the GEOSERVER_HEALTH_CHECK_URL to test for a valid (internal) URL that should respond HTTP 200 OK. It defaults to `http://localhost:8080/geoserver/ows`.
### Custom UID and GID
The tomcat user uid and gid can be customized with `CUSTOM_UID` and `CUSTOM_GID` environment variables, so that the mounted data_dir and exts_dir are accessible by both geoserver and a given host user. Usage example:
```bash
docker run -d -p 8080:8080 -e CUSTOM_UID=$(id -u) -e CUSTOM_GID=$(id -g) oscarfonts/geoserver
```
### Custom extensions
To add extensions to your GeoServer installation, provide a directory with the unzipped extensions separated by directories (one directory per extension):
```bash
docker run -d -p 8080:8080 -v ${PWD}/exts_dir:/var/local/geoserver-exts/ oscarfonts/geoserver
```
You can use the `build_exts_dir.sh` script together with a [extensions](https://github.com/oscarfonts/docker-geoserver/tree/master/extensions) configuration file to create your own extensions directory easily.
> **Warning**: The `.jar` files contained in the extensions directory will be copied to the `WEB-INF/lib` directory of the GeoServer installation. Make sure to include only `.jar` files from trusted sources to avoid security risks.
### Custom configuration directory
It is also possible to configure the context path by providing a Catalina configuration directory:
```bash
docker run -d -p 8080:8080 -v ${PWD}/config_dir:/usr/local/tomcat/conf/Catalina/localhost oscarfonts/geoserver
```
See some [examples](https://github.com/oscarfonts/docker-geoserver/tree/master/2.23.2/conf).
近期下载者:
相关文件:
收藏者: