From 7e4abcb5784be4428a821604c53ee0c9e476b375 Mon Sep 17 00:00:00 2001 From: Vitali Yanushchyk Date: Fri, 13 Sep 2024 05:59:01 -0300 Subject: [PATCH] chg ! docker exit in case non-zero --- docker/bin/docker-entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/bin/docker-entrypoint.sh b/docker/bin/docker-entrypoint.sh index bbd83230..dd6fee59 100755 --- a/docker/bin/docker-entrypoint.sh +++ b/docker/bin/docker-entrypoint.sh @@ -27,7 +27,7 @@ case "$1" in exit 0 ;; worker) - gosu user:app django-admin syncdnn + gosu user:app django-admin syncdnn || exit 1 set -- tini -- "$@" set -- gosu user:app celery -A hope_dedup_engine.config.celery worker -E --loglevel=ERROR --concurrency=4 ;; @@ -36,8 +36,8 @@ case "$1" in set -- gosu user:app celery -A hope_dedup_engine.config.celery beat --loglevel=ERROR --scheduler django_celery_beat.schedulers:DatabaseScheduler ;; run) - django-admin check --deploy - django-admin upgrade + django-admin check --deploy || exit 1 + django-admin upgrade || exit 1 set -- tini -- "$@" set -- gosu user:app uwsgi --ini /conf/uwsgi.ini ;;