From fa08e1032cfd5f348f64ee7ca267df4aacfe417c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 7 Feb 2017 21:48:10 +0000 Subject: docs: Clarify docker instructions It's possible to run 'manage.py' commands when using the Docker container but this is not documented anywhere. Clarify this. Signed-off-by: Stephen Finucane Acked-by: Daniel Axtens --- docs/development/installation.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/development') diff --git a/docs/development/installation.md b/docs/development/installation.md index cfcc63a..90e8a11 100644 --- a/docs/development/installation.md +++ b/docs/development/installation.md @@ -31,6 +31,10 @@ To run a shell within this environment, run: $ docker-compose run --rm web --shell +To run django-manage commands, such as `createsuperuser` or `migrate`, run: + + $ docker-compose run --rm web python manage.py createsuperuser + To run unit tests, excluding Selenium UI interaction tests, using only the package versions installed during container initialization, run: @@ -40,6 +44,11 @@ To run the same against all supported versions of Django (via tox), run: $ docker-compose run --rm web --quick-tox +To run specific tox targets or tests, pass arguments to the above: + + $ docker-compose run --rm web --quick-tox -e py27-django17 \ + patchwork.tests.test_bundles + To run all tests, including Selenium UI interaction tests, using only the package versions installed container initialization, run: -- cgit v1.2.3