run createn of default group and rtmp application on container start

This commit is contained in:
Jan Koppe 2020-05-01 16:08:07 +02:00
parent e92a131e4c
commit 621771c391
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
2 changed files with 7 additions and 1 deletions

View File

@ -24,4 +24,4 @@ ADD --chown=portier:portier . /app
RUN ./manage.py collectstatic --noinput --link RUN ./manage.py collectstatic --noinput --link
RUN ./manage.py compilemessages RUN ./manage.py compilemessages
CMD ["/app/start.sh", "migrate_start"] CMD ["/app/start.sh"]

View File

@ -23,7 +23,13 @@ migrate() {
python manage.py migrate python manage.py migrate
} }
initialize() {
python manage.py createdefaultgroup
python manage.py createdefaultapplication
}
wait_for_redis wait_for_redis
wait_for_database wait_for_database
migrate migrate
initialize
supervisord -n -c /etc/supervisord.conf supervisord -n -c /etc/supervisord.conf