From: Stephen Finucane Date: Tue, 7 Feb 2017 21:48:10 +0000 (+0000) Subject: docs: Clarify docker instructions X-Git-Tag: v2.0.0-rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa08e1032cfd5f348f64ee7ca267df4aacfe417c;p=thirdparty%2Fpatchwork.git 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 --- diff --git a/docs/development/installation.md b/docs/development/installation.md index cfcc63ae..90e8a115 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: