run createn of default group and rtmp application on container start
This commit is contained in:
parent
e92a131e4c
commit
621771c391
|
@ -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"]
|
||||||
|
|
6
start.sh
6
start.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue