Skip to content

Commit c6484bf

Browse files
committed
Merge pull request #6 from infosiftr/fix-var-run
Fix /var/run ownership
2 parents 783906f + dc0a591 commit c6484bf

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

8.4/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

9.0/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

9.1/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

9.2/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

9.3/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

9.4/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

Dockerfile.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

0 commit comments

Comments
 (0)