From 23da6e942bf68b1c895152948e1580df3ee09d52 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Tue, 5 Dec 2017 15:49:40 -0500 Subject: [PATCH] Create a temporary SQLite database for anitya staging Signed-off-by: Jeremy Cline --- roles/openshift-apps/release-monitoring/files/buildconfig.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/release-monitoring/files/buildconfig.yml b/roles/openshift-apps/release-monitoring/files/buildconfig.yml index 500b6ffa1c..9ad8dbe9d4 100644 --- a/roles/openshift-apps/release-monitoring/files/buildconfig.yml +++ b/roles/openshift-apps/release-monitoring/files/buildconfig.yml @@ -41,7 +41,8 @@ items: ENV USER=anitya EXPOSE 8080 EXPOSE 9940 - ENTRYPOINT python3-gunicorn --bind 0.0.0.0:8080 --access-logfile=- anitya.wsgi:application + ENTRYPOINT python3 -c "from anitya.config import config; from anitya.lib import utilities; utilities.init('sqlite:////var/tmp/anitya-dev.sqlite', None, debug=True, create=True)" \ + && python3-gunicorn --bind 0.0.0.0:8080 --access-logfile=- anitya.wsgi:application type: Dockerfile strategy: type: Docker