Initial commit required to build a Docker image.

This commit is contained in:
Roberto Rosario
2015-11-29 19:00:21 -04:00
parent 6ef9b25e74
commit ad439fb9ce
6 changed files with 118 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -e
if [[ -z $POSTGRES_PORT_5432_TCP_ADDR ]]; then
echo "** ERROR: You need to link the Postgres container."
exit 1
fi
until nc -z $POSTGRES_PORT_5432_TCP_ADDR $POSTGRES_PORT_5432_TCP_PORT; do
echo "$(date) - waiting for Postgres..."
sleep 1
done
# Migrate database, create initial admin user
mayan-edms.py initialsetup
exec "$@"