From 5630f1bf32d5cc41c63987d84dd1ce4b9d6d56bd Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Mon, 31 Oct 2022 16:44:01 -0500 Subject: [PATCH 1/2] Create /run/httpd for GitLab runner --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 87d710d..d19058a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,6 +64,9 @@ COPY rsyslog/owamp-syslog.conf /etc/rsyslog.d/owamp-syslog.conf # ----------------------------------------------------------------------------- +# Create httpd run directory for httpd (using /run for Kaniko build on GitLab runner) +RUN install -dv /run/httpd + RUN mkdir -p /var/log/supervisor ADD supervisord.conf /etc/supervisord.conf From 4f0e0fbfa5783c40d708f1d63f13075fdb4b00ba Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Thu, 3 Nov 2022 11:20:00 -0500 Subject: [PATCH 2/2] Only create /run/postgresql for GitLab Runner --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d19058a..f268386 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ ENV PGVERSION 10 ENV PGDATA /var/lib/pgsql/10/data # Create run directory (using /run for Kaniko build) -RUN install -dv --mode=775 --owner=postgres --group=postgres /var/run/postgresql /run/postgresql +RUN install -dv --mode=775 --owner=postgres --group=postgres /run/postgresql # Initialize the database RUN su - postgres -c "/usr/pgsql-10/bin/pg_ctl init"