#1 2015-12-20 12:35:35

Axel
Member
Registered: 2015-12-20
Posts: 7

Development previews for maps

https://forum.opennauticalchart.org/vie … pid=41#p41 :

malcolmh wrote:

It would be great if we could put builds of the various contenders on one of our servers so that others could look at the end results. Then us non-webbies could view them with our browsers.

I already have prepared something like this for use with docker on the new alpha.openseamap.org.

We can use this to provide simple previews for the different maps. The container map-docker clones a git repository on startup and serves it via nginx. Php is active.

I only need the git url, the branch and a name for the subdomain. Than I can activate an instance at the new alpha server. I will configure the server to automatically reload the container from time to time. So the preview will be updated on a regular basis (but not on each pull request or merge).
Later on we can setup the CI system I already introduced on the dev-ML (http://sourceforge.net/p/openseamap/mai … sg34626679)

Offline

#2 2015-12-20 12:53:12

Dirk--
Administrator
From: Ruhrgebiet
Registered: 2015-12-06
Posts: 42
Website

Re: Development previews for maps

Hi Axel,
how do I call the preview api?
I would expect something like http://tiles.grade.de/tiles.py/seamark/preview.html
Thanks, Dirk

Offline

#3 2015-12-20 13:01:24

Axel
Member
Registered: 2015-12-20
Posts: 7

Re: Development previews for maps

Dirk-- wrote:

how do I call the preview api?

There is (currently) no API call necessary or possible.
Via the docker image I setup a complete nginx webserver. The data to serve is pulled via git pull at the statup.
The urls will be like http://map.195.37.132.70.xip.io/ .

As an addition I prepared a webhook listener: https://github.com/aAXEe/github-webhook-handler
This is an additional server listing for webhook invokes from github. It can be used to update the served content after a git commit or to setup a new instance for each new pull request.

Offline

#4 2015-12-20 13:10:18

Dirk--
Administrator
From: Ruhrgebiet
Registered: 2015-12-06
Posts: 42
Website

Re: Development previews for maps

sorry, I was thinking about tile serving. Shall we start a new topic at 'development > general discussion > tile server'?

Offline

#5 2015-12-20 13:25:38

Axel
Member
Registered: 2015-12-20
Posts: 7

Re: Development previews for maps

Dirk-- wrote:

sorry, I was thinking about tile serving.

Ahh ok. I thought the subforum "online map" is related to the html maps like http://map.openseamap.org . But it stands for tiles?!


Dirk-- wrote:

Shall we start a new topic at 'development > general discussion > tile server'?

Why not? :)
You can find my configuration for the new t1.openseamap.org here: https://github.com/aAXEe/tiles-docker



Back to the main topic:
I created an instance for https://github.com/roeger/onlineseamap:
http://roeger-onlineseamap.195.37.132.7 … o/map.html
It is updated once a hour.

What do you think?

As no one responded I removed that site.

Last edited by Axel (2016-03-02 17:47:18)

Offline

Board footer

Powered by FluxBB