From ac76e14129941ec08a952aeac9939d8c87b9e7bf Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Thu, 29 Jul 2021 18:29:17 +0000 Subject: [PATCH] Bvander/fix notify migrations --- apps/cic-notify/docker/Dockerfile | 4 ++-- apps/cic-notify/docker/Dockerfile_ci | 4 ++-- apps/cic-notify/docker/db.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/cic-notify/docker/Dockerfile b/apps/cic-notify/docker/Dockerfile index 37f1aa0e..3453802d 100644 --- a/apps/cic-notify/docker/Dockerfile +++ b/apps/cic-notify/docker/Dockerfile @@ -15,8 +15,8 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \ COPY . . RUN python setup.py install -COPY docker/start_tasker.sh . -RUN chmod +x start_tasker.sh +COPY docker/*.sh . +RUN chmod +x *.sh # ini files in config directory defines the configurable parameters for the application # they can all be overridden by environment variables diff --git a/apps/cic-notify/docker/Dockerfile_ci b/apps/cic-notify/docker/Dockerfile_ci index 85f87205..3db71bc9 100644 --- a/apps/cic-notify/docker/Dockerfile_ci +++ b/apps/cic-notify/docker/Dockerfile_ci @@ -15,8 +15,8 @@ COPY . . RUN python setup.py install -COPY docker/start_tasker.sh . -RUN chmod +x start_tasker.sh +COPY docker/*.sh . +RUN chmod +x *.sh # ini files in config directory defines the configurable parameters for the application # they can all be overridden by environment variables diff --git a/apps/cic-notify/docker/db.sh b/apps/cic-notify/docker/db.sh index 71099a25..a4f79bd2 100644 --- a/apps/cic-notify/docker/db.sh +++ b/apps/cic-notify/docker/db.sh @@ -1,3 +1,3 @@ #!/bin/bash - -python migrate.py -c /usr/local/etc/cic-notify --migrations-dir /usr/local/share/cic-notify/alembic -vv +set -e +python scripts/migrate.py -c /usr/local/etc/cic-notify --migrations-dir /usr/local/share/cic-notify/alembic -vv