From d2149c52d1654af1682dbf43a07e601ccb64319d Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Dec 08 2017 18:17:38 +0000 Subject: Fix how we create the db in docker env. Fixes #2719 Signed-off-by: Clement Verna --- diff --git a/dev/docker/web-run b/dev/docker/web-run index 7ca36a8..7886379 100644 --- a/dev/docker/web-run +++ b/dev/docker/web-run @@ -3,10 +3,8 @@ if [ ! -f /attachments/inited ]; then echo "Giving Postgres time to start" sleep 10 - PAGURE_CONFIG=/code/openshift.cfg python createdb.py - alembic --config /code/openshift_alembic.ini heads | awk '{print $1}' | \ - xargs alembic --config /code/openshift_alembic.ini stamp touch /attachments/inited + PAGURE_CONFIG=/code/openshift.cfg python createdb.py --initial /code/openshift_alembic.ini else alembic --config /code/openshift_alembic.ini upgrade head fi