File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ COPY --from=extracted_bundle /bundle/etc/postgresql.conf /bundle/etc/pg_hba.conf
25
25
26
26
ARG POSTGRESQL_ARCH=x86_64
27
27
28
- RUN curl -sSLf https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-${POSTGRESQL_ARCH}/pgdg-redhat-repo-latest.noarch.rpm -o /tmp/pg_repo.rpm && \
28
+ RUN curl -sSLf https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-${PG_MAJOR} -o /tmp/pg_repo.key && \
29
+ rpm --import /tmp/pg_repo.key && \
30
+ curl -sSLf https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-${POSTGRESQL_ARCH}/pgdg-redhat-repo-latest.noarch.rpm -o /tmp/pg_repo.rpm && \
29
31
rpm -i /tmp/pg_repo.rpm && \
30
32
# Skip repo check for ARM as it's used only for development purposes and package has wrong signature.
31
33
if [[ "$POSTGRESQL_ARCH" == "aarch64" ]]; then sed -i 's/repo_gpgcheck = 1/repo_gpgcheck = 0/g' /etc/yum.repos.d/pgdg-redhat-all.repo; fi && \
@@ -46,7 +48,7 @@ RUN curl -sSLf https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-${POS
46
48
rpm -e --nodeps $(rpm -qa 'pgdg-redhat-repo*' ) && \
47
49
# (Optional) Remove line below to keep package management utilities
48
50
rpm -e --nodeps $(rpm -qa shadow-utils curl '*rpm*' '*dnf*' '*libsolv*' '*hawkey*' 'yum*' ) && \
49
- rm -rf /var/cache/dnf /var/cache/yum /tmp/pg_repo.rpm && \
51
+ rm -rf /var/cache/dnf /var/cache/yum /tmp/pg_repo.rpm /tmp/pg_repo.key && \
50
52
localedef -f UTF-8 -i en_US en_US.UTF-8 && \
51
53
chown postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
52
54
chmod +x /usr/local/bin/docker-entrypoint.sh && \
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ COPY --from=extracted_bundle /bundle/etc/postgresql.conf /bundle/etc/pg_hba.conf
25
25
26
26
ARG POSTGRESQL_ARCH =x86_64
27
27
28
- RUN curl -sSLf https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-${POSTGRESQL_ARCH}/pgdg-redhat-repo-latest.noarch.rpm -o /tmp/pg_repo.rpm && \
28
+ RUN curl -sSLf https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-${PG_MAJOR} -o /tmp/pg_repo.key && \
29
+ rpm --import /tmp/pg_repo.key && \
30
+ curl -sSLf https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-${POSTGRESQL_ARCH}/pgdg-redhat-repo-latest.noarch.rpm -o /tmp/pg_repo.rpm && \
29
31
rpm -i /tmp/pg_repo.rpm && \
30
32
# Skip repo check for ARM as it's used only for development purposes and package has wrong signature.
31
33
if [[ "$POSTGRESQL_ARCH" == "aarch64" ]]; then sed -i 's/repo_gpgcheck = 1/repo_gpgcheck = 0/g' /etc/yum.repos.d/pgdg-redhat-all.repo; fi && \
@@ -46,7 +48,7 @@ RUN curl -sSLf https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-${POS
46
48
rpm -e --nodeps $(rpm -qa 'pgdg-redhat-repo*') && \
47
49
# (Optional) Remove line below to keep package management utilities
48
50
rpm -e --nodeps $(rpm -qa shadow-utils curl '*rpm*' '*dnf*' '*libsolv*' '*hawkey*' 'yum*') && \
49
- rm -rf /var/cache/dnf /var/cache/yum /tmp/pg_repo.rpm && \
51
+ rm -rf /var/cache/dnf /var/cache/yum /tmp/pg_repo.rpm /tmp/pg_repo.key && \
50
52
localedef -f UTF-8 -i en_US en_US.UTF-8 && \
51
53
chown postgres:postgres /usr/local/bin/docker-entrypoint.sh && \
52
54
chmod +x /usr/local/bin/docker-entrypoint.sh && \
You can’t perform that action at this time.
0 commit comments