This repostory provides production ready Image of a gView Server.
gView GIS is Open Source and consists of desktop applications for creating maps and the gView server for publishing the maps as map services (WMS, GeoServices REST, etc).
https://github.com/jugstalt/gview-gis
docker run -d -p 45622:8080 --name=gview-server -e GV_REPOSITORY_PATH=/etc/gview-repository -e GV_ONLINERESOURCE_URL=http://localhost:45622 gstalt/gview-server:latest
You can use the following environment variables to override settings in the _config/mapserver.json
GV_REPOSITORY_PATH: A path, where files for services, client, output, etc will be stored. For production, this should be an directory outside der container. Otherweise you will loose the settings atfer restarting the container
GV_ONLINERESOURCE_URL: The Url with which the server is visible to the outside. This url is used, for example, to pass map images to a client via the output directory
After stating the container you can call http://localhost:45622 in your browser to manage gView Server
If you want to completly individualize the _config/mapserver.config use the https://hub.docker.com/repository/docker/gstalt/gview-server-base image
If you want to use gView5 Server with kubernetes, a ymal can look like this:
apiVersion: apps/v1
kind: Deployment
metadata:
name: gview-server
namespace: gview
labels:
app: gview-server
spec:
replicas: 1
selector:
matchLabels:
app: gview-server
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
template:
metadata:
labels:
app: gview-server
spec:
containers:
- name: gview-server
image: gstalt/gview-server:latest
volumeMounts:
- name: gview-storage
mountPath: /etc/storage
readOnly: false
ports:
- name: http
containerPort: 80
env:
- name: GV_REPOSITORY_PATH
value: /etc/storage/gview
- name: GV_ONLINERESOURCE_URL
value: https://gview.webgiscloud.com
#
# use an persistant storage (recommended)
#
volumes:
- name: gview-storage
persistentVolumeClaim:
claimName: gview-premium-storage
---
apiVersion: v1
kind: Service
metadata:
name: gview-server-svc
namespace: gview
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: gview-server
---
Its recommended to use an persistent storage for the repository.
Content type
Image
Digest
sha256:67a9386c1…
Size
244.1 MB
Last updated
5 months ago
docker pull gstalt/gview-server