diff --git a/Dockerfile b/Dockerfile index 03afd7d0..72f906fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,15 +30,15 @@ LABEL fly.pg-version=${PG_VERSION} LABEL fly.pg-manager=repmgr RUN apt-get update && apt-get install --no-install-recommends -y \ - ca-certificates wget iproute2 curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \ + ca-certificates iproute2 curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \ && apt autoremove -y # Repmgr -RUN wget https://launchpad.net/ubuntu/+archive/primary/+files/postgresql-15-repmgr_5.3.3-2_amd64.deb +RUN curl -L https://launchpad.net/ubuntu/+archive/primary/+files/postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb -o postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb RUN apt-get update && \ - apt-get install -y ./postgresql-15-repmgr_5.3.3-2_amd64.deb \ - && rm ./postgresql-15-repmgr_5.3.3-2_amd64.deb + apt-get install -y ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb \ + && rm ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb # PostGIS RUN apt-get update && apt-get install --no-install-recommends -y \ diff --git a/Dockerfile-timescaledb b/Dockerfile-timescaledb index fdd9b507..2e4920db 100644 --- a/Dockerfile-timescaledb +++ b/Dockerfile-timescaledb @@ -34,14 +34,13 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ ca-certificates iproute2 curl bash dnsutils vim haproxy socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \ && apt autoremove -y -# Repmgr - Pinned to 5.3.3 -RUN wget https://launchpad.net/ubuntu/+archive/primary/+files/postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb +# Repmgr +RUN curl -L https://launchpad.net/ubuntu/+archive/primary/+files/postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb -o postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb RUN apt-get update && \ apt-get install -y ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb \ && rm ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb - RUN echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(cat /etc/os-release | grep VERSION_CODENAME | cut -d'=' -f2) main" > /etc/apt/sources.list.d/timescaledb.list \ && curl -L https://packagecloud.io/timescale/timescaledb/gpgkey | apt-key add -