Add initdb to local-docker.sh

This commit is contained in:
Matt Jibson 2015-10-06 01:29:15 -04:00
parent 3e7a95407b
commit 7a85140aae
2 changed files with 5 additions and 0 deletions

View file

@ -34,6 +34,7 @@ To build and run a docker container, pass one argument to local-docker.sh:
- `buildman`: run the buildmanager
- `notifications`: run the notification worker
- `test`: run the unit tests
- `initdb`: clear and initialize the test database
For example:

View file

@ -23,6 +23,10 @@ notifications)
test)
d bash /src/quay/local-test.sh
;;
initdb)
rm -f test/data/test.db
d /venv/bin/python initdb.py
;;
*)
echo "unknown option"
exit 1