postgres:11-alpine without durability settings. This may be useful for unit tests.
1.1K
non-durable-settings.sh:
#!/usr/bin/env bash
echo "################## NON-DURABLE SETTINGS ENABLED ##################"
# setting non-durable options
# https://www.postgresql.org/docs/current/static/non-durability.html
# no need to flush data to disk.
echo "fsync = off" >> /var/lib/postgresql/data/postgresql.conf
# no need to force WAL writes to disk on every commit.
echo "synchronous_commit = off" >> /var/lib/postgresql/data/postgresql.conf
# no need to guard against partial page writes.
echo "full_page_writes = off" >> /var/lib/postgresql/data/postgresql.conf
Dockerfile:
FROM postgres:11-alpine
COPY non-durable-settings.sh /docker-entrypoint-initdb.d/non-durable-settings.sh
Content type
Image
Digest
Size
27.1 MB
Last updated
almost 8 years ago
docker pull warchantua/postgres-nondurable:11-alpine