Add initdb to local-docker.sh
This commit is contained in:
parent
3e7a95407b
commit
7a85140aae
2 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue