akvo / akvo-provisioning

Server and development environment provisioning data and configurations
9 stars 2 forks source link

Create a Docker containter for Akvo DASH python development #246

Closed iperdomo closed 8 years ago

iperdomo commented 8 years ago

We're going to use Django as a way of exposing some Models via the Django Rest Framework. In the past we used a Vagrant Box for development but we're moving towards using Docker.

We need to prepare a Dockerfile, and documentation on how to use it, that describes an image for development. Initially will be just one image containing everything needed for development.

The current DASH repository is: https://github.com/akvo/akvo-dash

zzgvh commented 8 years ago

With docker, it makes sense to not have a virtualenv, right? If so then just having pip is enough I think. Eventually it'd be nice to have python libraries auto-install from a requirements file, but that's not needed initially.

Not entirely sure about the version of python. 3.5 was released only a few months ago so there is a small chance of libraries not supporting it. 3.4 is over a year old and the conservative choice I guess.

iperdomo commented 8 years ago

Default versions in Ubuntu 14.04

iperdomo commented 8 years ago

With docker, it makes sense to not have a virtualenv, right?

Yeah, the virtualenv is the workaround to have a self contained environment. In this case the whole image is the isolated environment.

zzgvh commented 8 years ago

Ah, well, then 3.4 seems like an obvious easy choice!

kardan commented 8 years ago

Do we need Nginx if it's only for development?

zzgvh commented 8 years ago

Good question. But given the time pressure we seem to have it's probably good if a dev server can be set up using this for demo purposes.

kardan commented 8 years ago

Issue in Dash repo: https://github.com/akvo/akvo-dash/issues/3