Sign inSign up

gstalt/gview5-server

By gstalt

•Updated about 4 years ago

gView5 Map and Feature Server

Image
0

2.1K

gstalt/gview5-server repository overview

This repostory provides production ready Image of a gView5 server.

gView5 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/gview5⁠

docker run -d -p 5050:80 --name=gview5-server -e GV_REPOSITORY_PATH=/etc/my-gview5 -e GV_ONLINERESOURCE_URL=http://localhost:5050 gstalt/gview5-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:5000⁠ in your browser to manage gView5 server

If you want to completly individualize the _config/mapserver.config use the https://hub.docker.com/repository/docker/gstalt/gview5-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/gview5-server:latest
        volumeMounts:
        - name: gview-storage
          mountPath: /etc/storage
          readOnly: false
        ports:
        - name: http
          containerPort: 80
        env:
        - name: GV_REPOSITORY_PATH
          value: /etc/storage/gview5
        - 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.

Tag summary

Content type

Image

Digest

sha256:d4c859bc5…

Size

254.6 MB

Last updated

about 4 years ago

docker pull gstalt/gview5-server