Created
August 10, 2017 17:05
-
-
Save iynere/746c7a819559facf62a1afb41135c4f8 to your computer and use it in GitHub Desktop.
gospotcheck Dockerfile: https://hub.docker.com/r/rohara/postgis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mdillon/postgis:9.4 | |
ENV POSTGRES_USER=root \ | |
POSTGRES_DB=circle_test | |
# This is performance optimization tweak to make DB faster | |
RUN if [ -e /usr/local/share/postgresql/postgresql.conf.sample ]; then \ | |
postgresfile=/usr/local/share/postgresql/postgresql.conf.sample; \ | |
else \ | |
postgresfile=/usr/share/postgresql/postgresql.conf.sample; \ | |
fi && \ | |
echo fsync=off >> $postgresfile &&\ | |
echo synchronous_commit=off >> $postgresfile &&\ | |
echo full_page_writes=off >> $postgresfile &&\ | |
echo bgwriter_lru_maxpages=0 >> $postgresfile | |
ENV PGDATA /dev/shm/pgdata/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment