#30010: Add support for running the test suite through docker with 
docker-compose
-----------------------------------+--------------------------------------
     Reporter:  Tom Forbes         |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Description changed by Tom Forbes:

Old description:

> As
> [https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg
> /django-developers/_SRnleXuyzI/KYYQXiPHDQAJ per a discussion on the
> developers mailing list], I would like to propose adding docker-compose
> support to Django.
>
> Right now running the test suite across different databases is annoying
> at best, and is a pain point for new developers wishing to join the
> project. With a relatively small number of changes we can add a docker-
> compose definition to the Django project itself which will allow anyone
> to quickly run tests across any supported Python/database version.
>
> One option is to add this to runtests.py, i.e `runtests.py --docker`. I
> do not think this is a good approach as there are a large ecosystem of
> tools that already work with docker, including editors, CLI tools and
> shells, which will not work with runtests.py.
>
> I've already done most of the work for this in [https://github.com/orf
> /django-docker-box django-docker-box]. We would need to copy the
> [https://github.com/orf/django-docker-box/blob/master/docker-compose.yml
> docker-compose.yml] file as well [https://github.com/orf/django-docker-
> box/blob/master/Dockerfile as the Dockerfile], and add documentation.
>
> Getting this to work with Oracle would require more work and I believe it
> can be done as a future ticket.

New description:

 As
 [https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg
 /django-developers/_SRnleXuyzI/KYYQXiPHDQAJ per a discussion on the
 developers mailing list], I would like to propose adding docker-compose
 support to Django.

 Right now running the test suite across different databases is annoying at
 best, and is a pain point for new developers wishing to join the project.
 With a relatively small number of changes we can add a docker-compose
 definition to the Django project itself which will allow anyone to quickly
 run tests across any supported Python/database version.

 One option is to add this to runtests.py, i.e `runtests.py --docker`. I do
 not think this is a good approach as there are a large ecosystem of tools
 that already work with docker, including editors, CLI tools and shells,
 which will not work with runtests.py.

 I've already done most of the work for this in [https://github.com/orf
 /django-docker-box django-docker-box]. We would need to copy the
 [https://github.com/orf/django-docker-box/blob/master/docker-compose.yml
 docker-compose.yml] file as well [https://github.com/orf/django-docker-
 box/blob/master/Dockerfile as the Dockerfile], and add documentation.

 Getting this to work with Oracle would require more work and I believe it
 can be done as a future ticket.

 In django-docker-box I've had [https://github.com/orf/django-docker-
 box/tree/master/settings to create specific settings files for each
 backend]. I can't see a way around not including this in core as well,
 perhaps under a `tests/settings/docker/` subdirectory?

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30010#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.7b99ca407a0d51366eb00bfe4a38e07d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to