Commit ac488074 authored by Hanne Moa's avatar Hanne Moa

Initial commit

parents
FROM debian:jessie
ENV LANG C.UTF-8
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y postgresql-client
COPY . /usr/src/app
CMD [ "/usr/src/app/chores.sh" ]
#!/bin/bash
set -e
set -o pipefail
DBSERVER=postgresql.uninett.no
DBNAME=postfixgui
CLONE_DBNAME=postfixgui_dev
OWNER=postfixgui
echo "PGPASSFILE: [$PGPASSFILE]"
chmod 0600 $PGPASSFILE
dropdb --if-exists --no-password -h $DBSERVER -U $OWNER $CLONE_DBNAME
createdb -h $DBSERVER -U $OWNER -T $DBNAME $CLONE_DBNAME
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment