nismod / infra-risk-vis

Risk analysis visualisation tool
https://global.infrastructureresilience.org
MIT License
12 stars 1 forks source link

Drop or simplify vector-tileserver container building #169

Closed tomalrussell closed 4 months ago

tomalrussell commented 1 year ago

The only difference between dev and prod vector tileserver Dockerfiles is the command run, which can be configured in docker-compose:

$ diff containers/vector/Dockerfile-*
< CMD ["tileserver-gl-light", "-c", "config.json", "-p", "8080", "--verbose", "-u", "https://localhost/vector"]
---
> CMD ["tileserver-gl-light", "-c", "config.json", "-p", "8080", "--verbose", "-u", "https://global.infrastructureresilience.org/vector"]

Can we run the maptiler/tileserver-gl directly, with mounted volumes for data, fonts and config.json, and the command specified in docker-compose? If so, we could drop our vector-tileserver layer and depend on it directly.