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

Adding configuration for building in Docker #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtlynch
Copy link

@mtlynch mtlynch commented Apr 8, 2019

This adds a configuration for building citybound in Docker so that users can compile it on any OS and not worry about dependencies. Updates the CONTRIBUTING.md with instructions on how to compile using Docker.

If you configure automatic builds on Docker Cloud (free for open source projects and easy to set up), users can run Citybound in a single command without ever cloning the repo. Here's an example with my copy of the Docker image:

docker run \
  -it \
  --publish 127.0.0.1:1234:1234 \
  --publish 127.0.0.1:9999:9999 \
  --name citybound mtlynch/citybound

@joe307bad
Copy link

How would I run this and persist citybound data across container restarts?

@mtlynch
Copy link
Author

mtlynch commented Jun 16, 2019

Docker allows you to persist data in volumes. Where does citybound store its persistent data on the filesystem? I'm not sure which directory it puts it in, but you can just add the flag:

-v citybound-data:/path/to/citybounds/data

and Docker will preserve that folder across container restarts.

@joe307bad
Copy link

Thanks @mtlynch. Yes, I am wondering where citybound would store it's data that would need persisted.

@sseemayer
Copy link
Contributor

There is a command line argument CITY_FOLDER which defaults to ./city.

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.

None yet

3 participants