comparison docker/Dockerfile.db @ 9716:c3afc0274bba 3.2.x

Improve Docker-based development setup _ Add demo DEMs and WSPLGEN to artifact server _ Do not unpack unused large DEM files into database image _ Improve README
author Tom Gottfried <tom@intevation.de>
date Mon, 22 Mar 2021 17:35:30 +0100
parents 537fe44f2792
children 13e2d38ad314
comparison
equal deleted inserted replaced
9715:278d285a16bf 9716:c3afc0274bba
55 ADD ./backend/doc/schema /opt/d4eriver_db 55 ADD ./backend/doc/schema /opt/d4eriver_db
56 56
57 # Go to postgres home for write permissions 57 # Go to postgres home for write permissions
58 WORKDIR /var/lib/postgresql 58 WORKDIR /var/lib/postgresql
59 ENV DATA_ARCH demodaten_3.1.10-bis-3.2.x.tar.gz 59 ENV DATA_ARCH demodaten_3.1.10-bis-3.2.x.tar.gz
60 RUN curl -k "https://wald.intevation.org/frs/download.php/2282/$DATA_ARCH" | \ 60 RUN curl -s "https://wald.intevation.org/frs/download.php/2282/$DATA_ARCH" | \
61 tar xz 61 tar --wildcards -xz 'demodaten/*.dump.sql'
62 62
63 ENV PGDATA /var/lib/postgresql/9.4/main 63 ENV PGDATA /var/lib/postgresql/9.4/main
64 RUN /usr/lib/postgresql/9.4/bin/pg_ctl start -wo "--config_file=$PGCONF" && \ 64 RUN /usr/lib/postgresql/9.4/bin/pg_ctl start -wo "--config_file=$PGCONF" && \
65 /opt/d4eriver_db/postgresql-setup.sh && \ 65 /opt/d4eriver_db/postgresql-setup.sh && \
66 psql -f demodaten/d4e_demodata.dump.sql d4e && \ 66 psql -f demodaten/d4e_demodata.dump.sql d4e && \

http://dive4elements.wald.intevation.org