Skip to content

Commit

Permalink
Merge pull request #611 from Cray-HPE/feature/fix-spilo-rebuilds
Browse files Browse the repository at this point in the history
CASMPET-6969 CASMPET-7009 CASMPET-7010 Fix spilo container builds
  • Loading branch information
mtupitsyn authored May 24, 2024
2 parents 4c218d1 + 9857e28 commit 03fd9f4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright [2022] Hewlett Packard Enterprise Development LP
# (C) Copyright 2022-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -23,5 +23,6 @@
#
FROM registry.opensource.zalan.do/acid/logical-backup:v1.8.2

RUN apt-get -y update && apt-get upgrade -y && apt full-upgrade -y\
RUN sed -i -e 's/apt\.postgresql\.org/apt-archive.postgresql.org/' /etc/apt/sources.list.d/pgdg.list \
&& apt-get -y update && apt-get upgrade -y && apt full-upgrade -y\
&& rm -rf /var/lib/apt/lists/
9 changes: 5 additions & 4 deletions registry.opensource.zalan.do/acid/spilo-12/1.6-p3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright [2022] Hewlett Packard Enterprise Development LP
# (C) Copyright 2022-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -23,10 +23,11 @@
#
FROM registry.opensource.zalan.do/acid/spilo-12:1.6-p3
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
# pbbouncer auto upgrade can not be run in noninteractive mode
RUN sed -i -e 's/apt\.postgresql\.org/apt-archive.postgresql.org/' /etc/apt/sources.list.d/pgdg.list \
&& apt-get update -y && \
# pgbouncer auto upgrade can not be run in noninteractive mode
# force upgrade/reinstall
apt-get -o Dpkg::Options::="--force-confnew" install pgbouncer && \
apt-get -o Dpkg::Options::="--force-confnew" install pgbouncer && \
apt-get upgrade -y && rm -rf /var/lib/apt/lists/* && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& dpkg-reconfigure --frontend=noninteractive locales \
Expand Down
12 changes: 8 additions & 4 deletions registry.opensource.zalan.do/acid/spilo-14/2.1-p7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright [2022-2023] Hewlett Packard Enterprise Development LP
# (C) Copyright 2022-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -22,9 +22,13 @@
# OTHER DEALINGS IN THE SOFTWARE.
#
FROM registry.opensource.zalan.do/acid/spilo-14:2.1-p7

RUN apt-get -y update && apt-get upgrade -y && apt full-upgrade -y\
&& rm -rf /var/lib/apt/lists/
ENV DEBIAN_FRONTEND noninteractive
RUN sed -i -e 's/apt\.postgresql\.org/apt-archive.postgresql.org/' /etc/apt/sources.list.d/pgdg.list \
&& apt-get update -y && \
# pgbouncer auto upgrade can not be run in noninteractive mode
# force upgrade/reinstall
apt-get -o Dpkg::Options::="--force-confnew" install pgbouncer && \
apt-get upgrade -y && rm -rf /var/lib/apt/lists/*

# Overwrite the pgq_ticker.ini file in the postgres container due to change in pgqd:3.5-1
# https://github.com/zalando/spilo/issues/838
Expand Down

0 comments on commit 03fd9f4

Please sign in to comment.