kopia lustrzana https://github.com/wagtail/bakerydemo
Remove some crap
rodzic
cc6974df72
commit
0a35ca264f
|
@ -75,8 +75,5 @@ RUN mkdir -p /code/bakerydemo/media/images && chown -R 1000:2000 /code/bakerydem
|
|||
# mark the destination for images as a volume
|
||||
VOLUME ["/code/bakerydemo/media/images/"]
|
||||
|
||||
# start uWSGI, using a wrapper script to allow us to easily add more commands to container startup:
|
||||
ENTRYPOINT ["/code/docker-entrypoint.sh"]
|
||||
|
||||
# Start uWSGI
|
||||
CMD ["/venv/bin/uwsgi", "--show-config"]
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
until psql $DATABASE_URL -c '\l'; do
|
||||
>&2 echo "Postgres is unavailable - sleeping"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
>&2 echo "Postgres is up - continuing"
|
||||
|
||||
if [ "$1" = '/venv/bin/uwsgi' ]; then
|
||||
/venv/bin/python manage.py migrate --noinput
|
||||
fi
|
||||
|
||||
if [ "x$DJANGO_LOAD_INITIAL_DATA" = 'xon' ]; then
|
||||
/venv/bin/python manage.py load_initial_data
|
||||
fi
|
||||
|
||||
exec "$@"
|
Ładowanie…
Reference in New Issue