From 7a85140aae25ece03951a0d387144307d62eb203 Mon Sep 17 00:00:00 2001 From: Matt Jibson Date: Tue, 6 Oct 2015 01:29:15 -0400 Subject: [PATCH] Add initdb to local-docker.sh --- README.md | 1 + local-docker.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index e73ec0cfd..a5e9ea86a 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/local-docker.sh b/local-docker.sh index 530ff2dae..4d816e1a4 100755 --- a/local-docker.sh +++ b/local-docker.sh @@ -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