diff --git a/.ci/dockerfile-hash.yaml b/.ci/dockerfile-hash.yaml index e55dc8fa8..0fd1268bd 100644 --- a/.ci/dockerfile-hash.yaml +++ b/.ci/dockerfile-hash.yaml @@ -1,2 +1,2 @@ variables: - DOCKERFILE_HASH: 4dc3e0c009219b4ec68921e16fd9db640fcab34e \ No newline at end of file + DOCKERFILE_HASH: 1feaffca97e60ca04f3c3a2932ab6ad3c970d34a \ No newline at end of file diff --git a/docker/build.Dockerfile b/docker/build.Dockerfile index 4dc3e0c00..1feaffca9 100644 --- a/docker/build.Dockerfile +++ b/docker/build.Dockerfile @@ -104,7 +104,7 @@ RUN curl --fail -L https://github.com/aptly-dev/aptly/releases/download/v${APTLY && rm -rf aptly.zip aptly_${APTLY_VERSION}_linux_amd64 ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=false -ENV STREAMPLACE_TEST_POSTGRES_COMMAND="sudo -u postgres /usr/lib/postgresql/14/bin/postgres -D /etc/postgresql/14/main/" +ENV STREAMPLACE_TEST_POSTGRES_COMMAND="install -d -o postgres -g postgres -m 3775 /var/run/postgresql/14-main.pg_stat_tmp && sudo -u postgres /usr/lib/postgresql/14/bin/postgres -D /etc/postgresql/14/main/" ENV STREAMPLACE_TEST_POSTGRES_URL="postgresql://postgres:postgres@localhost:5432/streamplace" # allow all postgres connections RUN bash -c 'echo -en "local all postgres peer\nhost all all 0.0.0.0/0 trust\n" > /etc/postgresql/14/main/pg_hba.conf'