Based on Github/eurostat/searoute.
To simplify deploy, we pulled in the SeaRoute-war and removed all other files from the original repository.
Eurostat is the statistical office of the European Union. This repository provides with open resources (prototypes, proofs of concept,...) developed in-house.
GET http://localhost:5017/seaws?opos=174.8,-36.8&dpos=121.8,31.2&res=5
Returns
{
"status": "ok",
"dist": 9815.2,
"dFrom": 5.5,
"dTo": 30.45,
"geom": {
"type": "MultiLineString",
"coordinates": [
[
[
121.8,
31.2
],
[
121.4838,
31.2398
],
(...)
[
174.7678,
-36.8422
],
[
174.8,
-36.8
]
]
]
}
}
Build a docker image
docker build -t localhost/searoutes:3.6 .
Run it and expose e.g. port 5017:
docker run -it --rm -p 5017:5017 localhost/searoutes:3.6
(NOTE: on ECS, we default to exposing ports in the 5xxx range for internal side-car containers)
docker pull dblworks/searoutes:3.6
export TAGNAME=3.6
Build:
On a x86 chip
docker build -t dblworks/searoutes:$TAGNAME .
On a ARM chip (for a x86 target):
docker build -t dblworks/searoutes:$TAGNAME . --platform linux/amd64
Publish:
docker push dblworks/searoutes:$TAGNAME