Mercurial > lada > lada-server
comparison db_schema/Dockerfile @ 1326:5a62a68bccf5
Remove creation of unused superuser and create missing directory.
(grafted from e0a959e652c4e0a52e1ef0b0d8eaa60e217e6252)
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 08 Nov 2016 19:22:48 +0100 |
parents | 902bc2190fec |
children | f2e574204e38 |
comparison
equal
deleted
inserted
replaced
1325:d3113d594013 | 1326:5a62a68bccf5 |
---|---|
39 # | 39 # |
40 # Use user postgres to run the next commands | 40 # Use user postgres to run the next commands |
41 # | 41 # |
42 USER postgres | 42 USER postgres |
43 | 43 |
44 RUN /etc/init.d/postgresql start && \ | 44 # XXX: Seems to fail on initdb issued by package installation |
45 psql --command "CREATE USER admin WITH SUPERUSER PASSWORD 'secret';" | 45 # (due to /usr/sbin/policy-rc.d ?). |
46 # See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739276 | |
47 RUN mkdir /var/run/postgresql/9.5-main.pg_stat_tmp | |
46 | 48 |
47 # | 49 # |
48 # Adjust PostgreSQL configuration so that remote connections to the | 50 # Adjust PostgreSQL configuration so that remote connections to the |
49 # database are possible. | 51 # database are possible. |
50 # | 52 # |