diff --git a/Dockerfile b/Dockerfile index 1a360b48..03afd7d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,16 @@ LABEL fly.pg-version=${PG_VERSION} LABEL fly.pg-manager=repmgr RUN apt-get update && apt-get install --no-install-recommends -y \ - ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \ + ca-certificates wget 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 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 + # PostGIS RUN apt-get update && apt-get install --no-install-recommends -y \ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ diff --git a/Dockerfile-timescaledb b/Dockerfile-timescaledb index d2a197ac..fdd9b507 100644 --- a/Dockerfile-timescaledb +++ b/Dockerfile-timescaledb @@ -31,9 +31,17 @@ LABEL fly.pg-version=${PG_VERSION} LABEL fly.pg-manager=repmgr RUN apt-get update && apt-get install --no-install-recommends -y \ - ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim haproxy socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \ + 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 + +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 -