From 5741a6408e48e588a35b951d46209a721fd556e6 Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Fri, 15 Nov 2024 20:49:44 +0200 Subject: [PATCH] chore: create /var/run/postgresql folder before initialization Signed-off-by: Valeriy Svydenko --- .../che-plugin-registry/build/dockerfiles/rhel.Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dependencies/che-plugin-registry/build/dockerfiles/rhel.Dockerfile b/dependencies/che-plugin-registry/build/dockerfiles/rhel.Dockerfile index c9c5c2e214..8be5d12ee7 100644 --- a/dependencies/che-plugin-registry/build/dockerfiles/rhel.Dockerfile +++ b/dependencies/che-plugin-registry/build/dockerfiles/rhel.Dockerfile @@ -87,6 +87,8 @@ RUN \ rm -rf /build RUN \ + mkdir -p /var/run/postgresql && \ + chmod 777 /var/run/postgresql && \ # Add UTF-8 for the database localedef -f UTF-8 -i en_US en_US.UTF-8 && \ # set up postgres user @@ -118,8 +120,7 @@ RUN \ echo -n "ovsx: "; /tmp/opt/ovsx/bin/ovsx --version && \ echo "======================" -RUN chmod 777 /var/run/postgresql && \ - initdb && \ +RUN initdb && \ /usr/local/bin/import_vsix.sh && \ chmod -R 777 /tmp/file && \ rm /var/lib/pgsql/15/data/database/postmaster.pid && \