[WIP] Add docker development environment#424
Conversation
|
So cool!
|
There was a problem hiding this comment.
MAINTAINER Doody Parizada <doody.parizada @ gmail.com>|
sorry for being strict, this is the first introduction to docker in hasadna so we better get this right |
d95c712 to
99e87de
Compare
99e87de to
2bb1e11
Compare
There was a problem hiding this comment.
- db should be in /opt/knesset - so users can change it
- download of dev.db should be done only if it doesn't already exist
- should be done in entrypoint
|
@oryband While we're here, can we get the docker environment to use postgres instead of sqlite? We've been wanting to be pg-only for a while, its a bit of a headache to support both. I can help with the pg setup next week. |
|
Did you encounter any problems with sqlite? On Wed, Nov 25, 2015 at 12:01 PM, Amir More notifications@github.com
,Noam Elfanbaum |
|
It's not that I encountered problems, as much as it requires some code to be written twice, so for some parts of oknesset the developer already needs to install postgres anyhow. |
|
That's a good example you sent! On Wed, Nov 25, 2015 at 12:40 PM, Amir More notifications@github.com
,Noam Elfanbaum |
you should probably use a stub postgres docker image, and docker-compose with fixtures. this will allow to connect an ok and postgres images together easily. @doodyparizada can help, i guess. |
run
docker-compose upand you have a full development environment in docker.@oryband
There is also an automated build on docker hub: https://hub.docker.com/r/doodyparizada/open-knesset/