]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: Clarify docker instructions
authorStephen Finucane <stephen@that.guru>
Tue, 7 Feb 2017 21:48:10 +0000 (21:48 +0000)
committerStephen Finucane <stephen@that.guru>
Wed, 1 Mar 2017 22:11:05 +0000 (22:11 +0000)
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 <stephen@that.guru>
Acked-by: Daniel Axtens <dja@axtens.net>
docs/development/installation.md

index cfcc63aecdb285a8622d4b5bc9b4883dc751191b..90e8a115be32939c8f08eca7bb49ba5df85520e6 100644 (file)
@@ -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: