Installation

Docker

For getting GOST to work in Docker there are two images available on Docker Hub:
For service and dashboard: [https://hub.docker.com/r/geodan/gost/]
For database: [https://hub.docker.com/r/geodan/gost-db/]
The docker images can run separately, or running in a combined way using the Dockercompose file.

If you want to use the latest (unstable) build of GOST, you can use the automated builds found here: [https://hub.docker.com/r/geodan/gost-nightly/] and here: [https://hub.docker.com/r/geodan/gost-db-nightly/] there is no guarantee these images will run correctly.

Running GOST with Docker-compose

The easiest way to get GOST including the dependencies running is to simply run the docker-compose file

            $ wget https://raw.githubusercontent.com/gost/docker-compose/master/docker-compose.yml
            $ docker-compose up
            

Docker images

Running GOST database


            . $ docker run -p 5432:5432 -e POSTGRES_DB=gost geodan/gost-db
            
Connect in pgadmin with localhost:5432 postgres/postgres
GOST schema is in schema postgres.v1

Running GOST service and dashboard


            $ docker run -p 8080:8080 --link gost-db:gost-db -e gost_db_host=gost-db geodan/gost
            
GOST is available at http://localhost:8080
For making connection to external database use environmental variables gost_db_host, gost_db_port, gost_db_user, gost_db_password:
For example:
docker run -p 8080:8080 -t -e gost_db_host=192.168.40.10 -e gost_db_database=gost geodan/gost

Binaries

.....

Building latest version

1) Install GoLang (https://golang.org/)
2) Install Postgresql (http://www.postgresql.org/) and PostGIS
Create a database and run "CREATE EXTENSION postgis;" on it
3) Clone code

            git clone https://github.com/Geodan/gost.git
            
4) Get dependencies

            go get github.com/gorilla/mux
            go get gopkg.in/yaml.v2
            go get github.com/lib/pq
            go get github.com/eclipse/paho.mqtt.golang
            
5) Edit config.yaml or set environment settings to change connection to database
6) Create GOST schema

            execute sql found under docker/test1.sql
            
7) Start

            go run main.go
            
8) In browser open http://localhost:8080/v1.0 to test if the server is running

About

Since 1985, Geodan has grown into one of the leading geo-ICT companies in our country. We specialise in the provision of spatial information and are experienced in applying new, innovative technologies

Our Bunker

Geodan
President Kennedylaan 1
1079 MB Amsterdam