-
Notifications
You must be signed in to change notification settings - Fork 22
Is anyone interested in Docker? #40
Comments
Yes, I think docker would be far easier to manage than the virtualbox we're currently using, so I'd be very interested in getting this project to that point. A few things though:
Now, we don't actually need to support all of these services/combinations within the same node. I'd be happy enough with something like a docker-compose file with these services:
And some way of choosing which combination of services you want for a particular invocation of the test suite. If we can reduce this project down to a docker-compose.yml file and some Dockerfiles, I'd be interested in trying to upstream them into the django/django repo. |
I had exactly the same thought a while back, and yesterday I came up with this: https://github.com/orf/django-docker-box It's by no means perfect, but it runs the Django test suite across all supported backends (including Oracle!). With docker-compose it's really simple to include these extra services like memcached (which I had completely forgotten about!) and Selenium. It's also pretty easy to use docker-selenium to run tests across multiple browsers. Please let me know if you think it's a good starting point. |
As a side note, using this I've got Travis to run a comprehensive Django test suite with a matrix of every single supported Python and database version except Oracle (will require some extra setup to get Interestingly enough there seems to be a reliable failure with the Django provided |
That's awesome, nice work 👍 I haven't gone through the project thoroughly yet, but I'll do so in the next few days. |
@orf You do not need an
|
@orf Sorry for confusing 😞 , it seems that basic |
Thanks for the clarification @felixxm! Their licensing is pretty annoying :( I've got the Oracle tests running using a third party image (https://hub.docker.com/r/sath89/oracle-12c/), but would love to get them to use the official image instead. I've also just added support for GIS tests in docker-box, bringing the total compatibility matrix to 62 (excluding Oracle)! Right now it's functional, but there is a bit of a mess with volumes and dependency installation. I mount Django's source code at a specific location and run the tests, which means that the extra dependencies are not available at image build time and so are re-installed every run. I'd like to use Anyway, it needs some refactoring but any feedback would be appreciated. |
Thanks for the clarification @felixxm! Their licensing is pretty annoying :( I've got the Oracle tests running using a third party image (https://hub.docker.com/r/sath89/oracle-12c/), but would love to get them to use the official image instead. I've also just added support for GIS tests in docker-box, bringing the total compatibility matrix to 62 (excluding Oracle)! Right now it's functional, but there is a bit of a mess with volumes and dependency installation. I mount Django's source code at a specific location and run the tests, which means that the extra dependencies are not available at image build time and so are re-installed every run. I'd like to use Anyway, it needs some refactoring but any feedback when you have time @jarshwah would be appreciated. |
Let's continue the conversation over on your repo - and then if django org is happy to adopt as the recommended solution in place of vagrant, we can migrate it over and add you as a contributor. I'll start up an issue over on your repo (here: orf/django-docker-box#1) |
I recently had to commit some code to django and needed to make sure to run and test django.
I created this: https://gist.github.com/kingbuzzman/3784b49bffa4f14b2b08575541ed7a1e
I wonder if anyone is interested in it.
django
directory to where you run it from.If you find any issues with it, i'm all ears.
The text was updated successfully, but these errors were encountered: