Skip to content
Snippets Groups Projects
docker-entrypoint.sh 376 B
Newer Older
#!/bin/bash

python3 manage.py migrate --run-syncdb
python3 manage.py createfixtures
python3 manage.py cleanuptasks
Hartung, Michael's avatar
Hartung, Michael committed

file="docker-entrypoint.lock"
# exit if entrypoint.lock exists to prevent new import of data every time docker is restarted
if ! test -f "$file"; then
    sh import-data.sh
    touch $file
fi

/usr/bin/supervisord -c "/etc/supervisor/conf.d/supervisord.conf"