UNCLASSIFIED

Commit 232186ac authored by Al Fontaine's avatar Al Fontaine
Browse files

Update Dockerfile

parent 50b0c312
Pipeline #41748 passed with stage
......@@ -24,14 +24,9 @@ RUN rpm --import /tmp/RPM-GPG-KEY-PGDG-12 && \
chmod +x /usr/local/bin/docker-entrypoint.sh
RUN mkdir /docker-entrypoint-initdb.d && \
mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
RUN set -eux && \
dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/12/postgresql.conf.sample" && \
cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample && \
ln -sv ../postgresql.conf.sample "/usr/share/postgresql/12/" && \
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample && \
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" && \
sed -ri s/"#?(listen_addresses)\s*=\s*\S+.*"/"#listen_addresses = '*'"/ /usr/pgsql-12/share/postgresql.conf.sample && \
grep -F "listen_addresses = '*'" /usr/pgsql-12/share/postgresql.conf.sample
VOLUME /var/lib/postgresql/data
......
  • Pipeline Status: SUCCESS
    Branch: patch-1

    graph LR
      0([setup]):::INTERNAL_SUCCESS --> 3([Import Artifacts]):::SUCCESS --> 4((/)):::INTERNAL_SUCCESS --> 5([Stage Artifacts]):::SUCCESS --> 6((/)):::INTERNAL_SUCCESS --> 7([Build]):::SUCCESS --> 8([Publish, Scan & Report]):::INTERNAL_NOT_BUILT
    
    classDef SUCCESS font-size:10px
    classDef FAILURE fill:#f44, font-size:10px
    classDef SKIPPED font-size:10px
    classDef ABORTED fill:#889, font-size:10px
    classDef INTERNAL_SUCCESS font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_FAILURE fill:#f44, font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_SKIPPED font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_ABORTED fill:#889, font-size:10px, stroke-dasharray: 2, 1
    
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment