Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for running the style with Docker(-compose) #365

Merged
merged 7 commits into from
Jun 11, 2020
Merged

Add support for running the style with Docker(-compose) #365

merged 7 commits into from
Jun 11, 2020

Conversation

hiddewie
Copy link
Contributor

@hiddewie hiddewie commented May 16, 2020

Taken from https://github.com/gravitystorm/openstreetmap-carto/blob/master/DOCKER.md

This guide makes setting up the database, mapnik, data and kosmtik much simpler, and without having to import data into the database running on the system.

See https://github.com/cyclosm/cyclosm-cartocss-style/blob/64461f470911da807bce852d5a8e106efabadeef/docs/DOCKER.md for textual documentation on getting started.

Dockerfile.db Outdated Show resolved Hide resolved

This CyclOSM repository needs to be a directory that is shared between your host system and the Docker virtual machine. Home directories are shared by default; if your repository is in another place you need to add this to the Docker sharing list (e.g. macOS: Docker Preferences > File Sharing; Windows: Docker Settings > Shared Drives).

## Importing data
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might need some extra info on downloading shapefiles & elevation, and generating contours and hillshading.

-G \
--drop \
$OSM2PGSQL_DATAFILE
;;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about downloading height information and generating hillshade and contours?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For contours, the easiest way to go is probably to use phyghtmap which handles both downloading height information and generating contours, for a specific area. Note however that contours are not yet in production, we are in the process of importing them at the moment.

Provided you can download height information, generating hillshades should be a matter of gdal commands : https://github.com/cyclosm/cyclosm-cartocss-style/blob/master/docs/INSTALL.md#create-hillshades.

@hiddewie hiddewie marked this pull request as ready for review May 17, 2020 08:51
@Phyks
Copy link
Member

Phyks commented May 17, 2020

Thanks for this PR!

There was a fork of a Docker tile server featured in OSM weekly some time ago, which includes CyclOSM as well, see https://github.com/mhajder/openstreetmap-tile-server-cyclosm (mentionned in https://github.com/cyclosm/cyclosm-cartocss-style#related-projects). What are the main differences? (might be worth emphasizing it in the README.me or DOCKER.md file).

docs/INSTALL.md Outdated Show resolved Hide resolved
@hiddewie
Copy link
Contributor Author

Thanks for the comments. I will improve this documentation.

I ran CyclOSM with the overv docker images (what the mhayder repository is cloned from) before, but the importing process was a less reliable than the docker compose file in the Carto style repository. Both work, and both produce roughly the same results.

A difference I like for this setup is the default configuration with a db, import and kosmtik image/container, which can be used with docker-compose without the need to remember environment variables and settings to start the import/tile-server Docker containers manually.

The Overv docker image also contains no kosmtik, and this has to be run by hand against the (Docker) tile server (I used joxit/kosmtik before).

Dockerfile.db Show resolved Hide resolved
@Phyks Phyks merged commit 4b15194 into cyclosm:master Jun 11, 2020
@Phyks
Copy link
Member

Phyks commented Jun 11, 2020

Thanks!

@hiddewie hiddewie deleted the docker branch June 12, 2020 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants