Skip to content

Instantly share code, notes, and snippets.

@iynere
Created August 10, 2017 17:05
Show Gist options
  • Save iynere/746c7a819559facf62a1afb41135c4f8 to your computer and use it in GitHub Desktop.
Save iynere/746c7a819559facf62a1afb41135c4f8 to your computer and use it in GitHub Desktop.
gospotcheck Dockerfile: https://hub.docker.com/r/rohara/postgis
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