diff options
author | Stephen Finucane <stephen@that.guru> | 2017-02-07 21:48:10 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-03-01 22:11:05 +0000 |
commit | fa08e1032cfd5f348f64ee7ca267df4aacfe417c (patch) | |
tree | 41f4a15c20fd950682c5b6e50f4f3bc42d5410a8 /docs/development | |
parent | 4eb6793631d9ef59cf44991143197be9a41f5b9b (diff) | |
download | patchwork-fa08e1032cfd5f348f64ee7ca267df4aacfe417c.tar patchwork-fa08e1032cfd5f348f64ee7ca267df4aacfe417c.tar.gz |
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 <stephen@that.guru>
Acked-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'docs/development')
-rw-r--r-- | docs/development/installation.md | 9 |
1 files changed, 9 insertions, 0 deletions
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: |