From 621771c39156ce92dbc0dcee916004629779a655 Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Fri, 1 May 2020 16:08:07 +0200 Subject: [PATCH] run createn of default group and rtmp application on container start --- Dockerfile | 2 +- start.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1600354..1901d6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ ADD --chown=portier:portier . /app RUN ./manage.py collectstatic --noinput --link RUN ./manage.py compilemessages -CMD ["/app/start.sh", "migrate_start"] +CMD ["/app/start.sh"] diff --git a/start.sh b/start.sh index f591351..17c3b04 100755 --- a/start.sh +++ b/start.sh @@ -23,7 +23,13 @@ migrate() { python manage.py migrate } +initialize() { + python manage.py createdefaultgroup + python manage.py createdefaultapplication +} + wait_for_redis wait_for_database migrate +initialize supervisord -n -c /etc/supervisord.conf