Skip to content

Commit 6f5e0ca

Browse files
committed
chore: create /var/run/postgresql folder before initialization
Signed-off-by: Valeriy Svydenko <[email protected]>
1 parent d0d5adb commit 6f5e0ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dependencies/che-plugin-registry/build/dockerfiles/rhel.Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ RUN \
8787
rm -rf /build
8888

8989
RUN \
90+
mkdir -p /var/run/postgresql && \
91+
chmod 777 /var/run/postgresql && \
9092
# Add UTF-8 for the database
9193
localedef -f UTF-8 -i en_US en_US.UTF-8 && \
9294
# set up postgres user
@@ -118,8 +120,7 @@ RUN \
118120
echo -n "ovsx: "; /tmp/opt/ovsx/bin/ovsx --version && \
119121
echo "======================"
120122

121-
RUN chmod 777 /var/run/postgresql && \
122-
initdb && \
123+
RUN initdb && \
123124
/usr/local/bin/import_vsix.sh && \
124125
chmod -R 777 /tmp/file && \
125126
rm /var/lib/pgsql/15/data/database/postmaster.pid && \

0 commit comments

Comments
 (0)