diff --git a/apps/cic-notify/docker/Dockerfile b/apps/cic-notify/docker/Dockerfile index 6ce2caba..37f1aa0e 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/*.sh . -RUN chmod +x /root/*.sh +COPY docker/start_tasker.sh . +RUN chmod +x start_tasker.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 5c14c05d..85f87205 100644 --- a/apps/cic-notify/docker/Dockerfile_ci +++ b/apps/cic-notify/docker/Dockerfile_ci @@ -11,14 +11,12 @@ RUN pip install --index-url https://pypi.org/simple \ --extra-index-url $GITLAB_PYTHON_REGISTRY --extra-index-url $EXTRA_INDEX_URL \ -r requirements.txt -COPY . . +COPY . . RUN python setup.py install -# TODO please review..can this go into requirements? -RUN pip install $pip_extra_index_url_flag .[africastalking,notifylog] - -COPY docker/*.sh . +COPY docker/start_tasker.sh . +RUN chmod +x start_tasker.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 ccb03f9e..71099a25 100644 --- a/apps/cic-notify/docker/db.sh +++ b/apps/cic-notify/docker/db.sh @@ -1,3 +1,3 @@ #!/bin/bash -migrate.py -c /usr/local/etc/cic-notify --migrations-dir /usr/local/share/cic-notify/alembic -vv +python migrate.py -c /usr/local/etc/cic-notify --migrations-dir /usr/local/share/cic-notify/alembic -vv