A
A
asnelzin2015-03-09 14:18:41
Django
asnelzin, 2015-03-09 14:18:41

How to use Docker for Django development?

Situation: I have a large Django application that uses Postgres, Celery and a bunch of other things for development and testing. The application feels great on Ubuntu 12.04, which is in production, but there are suspicions (and I don’t want to check them) that it won’t start on another OS. Up to this point, I've been developing it on my Ubuntu 12.04 desktop, but now I want to do it from home on a Mac.
Task:deploy this application under a poppy with minimal resources and maximum convenience. I tried Vagrant and, in principle, everything suits me, but the hype around Docker does not give me peace of mind. Will it be possible to reduce overhead if using it, or will it only help with further deployment? If so, what is the best way to deploy: divide into several containers (separately for django, postgres and celery) or merge into one?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2015-03-10
@index0h

> Will it be possible to reduce overhead if using it or will it only help with further deployment?
Yes, due to the fact that working with memory / processor time is faster + there is no strict need to synchronize the file system.
> If yes, what is the best way to deploy: split into multiple containers (separate for django, postgres and celery) or merge into one?
On good - it is better to share. If docker is only for the dev environment, you can stuff it into one.

Z
ZZZ_Sochi, 2015-03-19
@ZZZ_Sochi

Will it be possible to reduce overhead

No. Because the docker in the boot2docker poppy runs from a virtual machine. Since such a question has appeared at all, it means that you need to carefully study how docker works and what containers are in general.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question