Skip to content

Commit 396d2fd

Browse files
authored
Pin repgmr to 5.3.3 (#221)
* Pin repgmr to 5.3.3 * Cleanup
1 parent db397e4 commit 396d2fd

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ LABEL fly.pg-version=${PG_VERSION}
3030
LABEL fly.pg-manager=repmgr
3131

3232
RUN apt-get update && apt-get install --no-install-recommends -y \
33-
ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \
33+
ca-certificates iproute2 curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \
3434
&& apt autoremove -y
3535

36+
# Repmgr
37+
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
38+
39+
RUN apt-get update && \
40+
apt-get install -y ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb \
41+
&& rm ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb
42+
3643
# PostGIS
3744
RUN apt-get update && apt-get install --no-install-recommends -y \
3845
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \

Dockerfile-timescaledb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,16 @@ LABEL fly.pg-version=${PG_VERSION}
3131
LABEL fly.pg-manager=repmgr
3232

3333
RUN apt-get update && apt-get install --no-install-recommends -y \
34-
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 \
34+
ca-certificates iproute2 curl bash dnsutils vim haproxy socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \
3535
&& apt autoremove -y
3636

37+
# Repmgr
38+
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
39+
40+
RUN apt-get update && \
41+
apt-get install -y ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb \
42+
&& rm ./postgresql-${PG_MAJOR_VERSION}-repmgr_5.3.3-2_amd64.deb
43+
3744
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 \
3845
&& curl -L https://packagecloud.io/timescale/timescaledb/gpgkey | apt-key add -
3946

0 commit comments

Comments
 (0)