comparison docker/Dockerfile.db @ 9777:f98e5c7775d2 3.2.x

Do not rely on scripts being executable
author Tom Gottfried <tom@intevation.de>
date Fri, 20 Jan 2023 12:22:24 +0100
parents 0c4736d5dd4a
children
comparison
equal deleted inserted replaced
9776:e5b86f024141 9777:f98e5c7775d2
56 tar -C $HOME --wildcards -xz 'demodaten/*.dump.sql' 56 tar -C $HOME --wildcards -xz 'demodaten/*.dump.sql'
57 57
58 # Initialize database 58 # Initialize database
59 # Note that PostGIS legacy.sql is needed to support the outdated MapServer 6 59 # Note that PostGIS legacy.sql is needed to support the outdated MapServer 6
60 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ 60 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \
61 /opt/d4eriver_db/postgresql-setup.sh && \ 61 sh /opt/d4eriver_db/postgresql-setup.sh && \
62 psql -f ~/demodaten/d4e_demodata.dump.sql d4e && \ 62 psql -f ~/demodaten/d4e_demodata.dump.sql d4e && \
63 psql -d d4e -f /usr/share/postgresql/$PG_VERSION/contrib/postgis-3.1/legacy.sql && \ 63 psql -d d4e -f /usr/share/postgresql/$PG_VERSION/contrib/postgis-3.1/legacy.sql && \
64 createuser -S -D -R seddb && \ 64 createuser -S -D -R seddb && \
65 psql -c "ALTER USER seddb WITH PASSWORD 'seddb'" && \ 65 psql -c "ALTER USER seddb WITH PASSWORD 'seddb'" && \
66 createdb seddb && \ 66 createdb seddb && \

http://dive4elements.wald.intevation.org