Skip to content

Conversation

@maport
Copy link

@maport maport commented Mar 6, 2015

This adds support for a docker based development environment.

After you've added your config to docker.env, docker-compose up should start up MongoDB and Redis and get the gridspree app running under HTTPS with a self-signed cert and code changes causing an automatic app reload. The first run will take a while since it will have to fetch the redis and mongo images and build the python env for gridspree. After that it should be fairly quick.

I've only tested this on Ubuntu. I'd be interested on feedback running on non-Linux platforms. It should work fine but you will need to use a different IP in docker.env as the docker daemon will be running inside a VM on those platforms.

I had to add some code to main/__init__.py to get the app to wait unitl MongoDB and Redis are ready since the app fails with a fatal error if it gets further than this and can't connect to MongoDB. I don't think this should cause any problems when running in other environments.

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.

1 participant