From: Guillaume Pellerin Date: Thu, 6 Nov 2014 23:48:25 +0000 (+0100) Subject: fix postgresql init X-Git-Tag: 0.7^2~38^2~31 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d2fa154bdc769857e08d94c3d4da2be14947291c;p=timeside.git fix postgresql init --- diff --git a/Dockerfile b/Dockerfile index 1b8cbec..4f5bc11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,10 +34,10 @@ run pip install uwsgi ipython add . /opt/TimeSide # setup postgresql DB -run /etc/init.d/postgresql start user postgres -run psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" -run createdb -O docker docker +run /etc/init.d/postgresql start &&\ + psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\ + createdb -O docker docker user root # setup all the configfiles