diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..400a04dcaf11a12d817ca0feeed692a1fe4966c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM python:3.6-alpine +RUN apk add --update \ + py-gunicorn +# RUN pip install gunicorn diff --git a/app.json b/app.json deleted file mode 100644 index a6002c1677f2cd4988ab2046c468e0bcef29a837..0000000000000000000000000000000000000000 --- a/app.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "environments": { - "test": { - "scripts": { - "test": "python manage.py test" - } - } - } -} diff --git a/assure_postgres_user.sh b/assure_postgres_user.sh new file mode 100755 index 0000000000000000000000000000000000000000..92406222fcb3a916d2f336e8d926d387e4d4ebe4 --- /dev/null +++ b/assure_postgres_user.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +export PGPASSWORD=${POSTGRES_PASSWORD} +psql --host fogerty.upc.es \ + --user ${POSTGRES_USER} \ + --dbname ${POSTGRES_DB} \ + --command "CREATE USER postgres SUPERUSER;" \ + || echo "User postgres not created" + +exit 0