From e2f07374b3a9c802dadf7b29287cd44163826ea2 Mon Sep 17 00:00:00 2001 From: sixcorners Date: Thu, 20 Oct 2016 00:06:16 -0500 Subject: [PATCH] Add "mkdir -p /run/postgresql" to docker-entrypoint.sh. This allows the container to run with a tmpfs /run. --- 9.1/docker-entrypoint.sh | 1 + 9.2/docker-entrypoint.sh | 1 + 9.3/docker-entrypoint.sh | 1 + 9.4/docker-entrypoint.sh | 1 + 9.5/docker-entrypoint.sh | 1 + 9.6/docker-entrypoint.sh | 1 + docker-entrypoint.sh | 1 + 7 files changed, 7 insertions(+) diff --git a/9.1/docker-entrypoint.sh b/9.1/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.1/docker-entrypoint.sh +++ b/9.1/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.2/docker-entrypoint.sh b/9.2/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.2/docker-entrypoint.sh +++ b/9.2/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.3/docker-entrypoint.sh b/9.3/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.3/docker-entrypoint.sh +++ b/9.3/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.4/docker-entrypoint.sh b/9.4/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.4/docker-entrypoint.sh +++ b/9.4/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.5/docker-entrypoint.sh b/9.5/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.5/docker-entrypoint.sh +++ b/9.5/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.6/docker-entrypoint.sh b/9.6/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.6/docker-entrypoint.sh +++ b/9.6/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql