-
Notifications
You must be signed in to change notification settings - Fork 174
[WIP] Add docker development environment #424
base: master
Are you sure you want to change the base?
[WIP] Add docker development environment #424
Conversation
So cool!
|
@@ -0,0 +1,39 @@ | |||
FROM ubuntu:14.04 | |||
|
|||
MAINTAINER Doody Parizada doody.parizada @ gmail.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
WORKDIR /opt/database | ||
RUN apt-get install -y wget && \ | ||
wget http://oknesset-devdb.s3.amazonaws.com/dev.db.bz2 && \ | ||
bzip2 -d dev.db.bz2 && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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 [email protected]
,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 [email protected]
,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. |
@@ -0,0 +1,31 @@ | |||
FROM ubuntu:14.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not vivid
?
----------- | ||
|
||
- install docker_ and docker-compose_ | ||
- run ``docker-compose up`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single backquotes
@doodyparizada - I would like to merge it, do you intend to continue working on it sometime soon? |
@OriHoch i can help with this as well if you'd like, let's talk today |
hey, anyone working on this? If not, @uda - you can take it.. |
this issue might be related to #527 |
@OriHoch i'll also be at the hasadna today, feel free to talk to me if you need docker help |
run
docker-compose up
and 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/