spiral-project / daybed

Form validation and data storage API
http://daybed.rtfd.org/
BSD 3-Clause "New" or "Revised" License
53 stars 8 forks source link

(WIP) Add docker deployment #160

Closed leplatrem closed 10 years ago

leplatrem commented 10 years ago
elemoine commented 10 years ago

Nice! Out of curiosity, what's the exact goal of using Docker? Is it for daybed developers to quickly have a working dev environment? Or for people who want to deploy daybed for an actual use?

Btw here's a interesting article that suggests using an init process in Docker containers: http://phusion.github.io/baseimage-docker/, which sounds wise to me.

Natim commented 10 years ago

@elemoine It is more for really fast user deployement for the next release we will release the docker image pre configured as well as a Debian package to make it really fast and easy to deploy.

leplatrem commented 10 years ago

Thanks Eric for getting in touch :)

I can see two main use-cases of Docker for Daybed :

Regarding init in Docker, we've had this discussion for a while at Makina. The main disavantage is the lack of cron. But we can survive this by logging to stdout and delegate log handling to docker host daemon...

Natim commented 10 years ago

Why is it a WIP? What are you expecting to add?

leplatrem commented 10 years ago

Not WIP anymore :) Ready to review/merge

Notes: UWSGI supports environment variables substitution in ini files for the [uwsgi] section ($(VAR) syntax) . But Paste config parser does not expand them at all in the other sections, so I did it in python with os.path.expandvars (${VAR} syntax).

leplatrem commented 10 years ago

Done :)