You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
#
2
-
# Using --build-arg PGVERSION=14 we can build pg_auto_failover for any
2
+
# Using --build-arg PGVERSION=17 we can build pg_auto_failover for any
3
3
# target version of Postgres. In the Makefile, we use that to our advantage
4
4
# and tag test images such as pg_auto_failover_test:pg14.
5
5
#
6
-
ARG PGVERSION=14
6
+
ARG PGVERSION=17
7
7
8
8
#
9
9
# Define a base image with all our build dependencies.
10
10
#
11
11
# This base image contains all our target Postgres versions.
12
12
#
13
-
FROM debian:bullseye-slim AS base
13
+
FROM debian:bookworm-slim AS base
14
14
15
15
ARG PGVERSION
16
16
@@ -63,8 +63,8 @@ RUN apt-get update \
63
63
postgresql-common \
64
64
&& rm -rf /var/lib/apt/lists/*
65
65
66
-
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
67
-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
66
+
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
67
+
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
68
68
69
69
# bypass initdb of a "main" cluster
70
70
RUN echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf
# And finally our "run" images with the bare minimum for run-time.
138
138
#
139
-
FROM debian:bullseye-slim AS run
139
+
FROM debian:bookworm-slim AS run
140
140
141
141
ARG PGVERSION
142
142
@@ -160,8 +160,8 @@ RUN apt-get update \
160
160
libpq-dev \
161
161
&& rm -rf /var/lib/apt/lists/*
162
162
163
-
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
164
-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
163
+
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
164
+
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
165
165
166
166
# bypass initdb of a "main" cluster
167
167
RUN echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf
Copy file name to clipboardExpand all lines: docs/citus/Dockerfile
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
FROM debian:bullseye-slim
1
+
FROM debian:bookworm-slim
2
2
3
-
ARG PGVERSION=14
4
-
ARG CITUS=postgresql-14-citus-11.1
3
+
ARG PGVERSION=17
4
+
ARG CITUS=postgresql-17-citus-13.0
5
5
6
6
RUN apt-get update \
7
7
&& apt-get install -y --no-install-recommends \
@@ -19,9 +19,9 @@ RUN apt-get update \
19
19
&& rm -rf /var/lib/apt/lists/*
20
20
21
21
# we use apt.postgresql.org
22
-
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
23
-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
24
-
RUN echo "deb-src http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
22
+
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
23
+
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
24
+
RUN echo "deb-src [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
25
25
26
26
# bypass initdb of a "main" cluster
27
27
RUN echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf
Copy file name to clipboardExpand all lines: docs/citus/Dockerfile.app
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
FROM debian:bullseye-slim
1
+
FROM debian:bookworm-slim
2
2
3
3
ARG PGVERSION=14
4
4
@@ -17,9 +17,10 @@ RUN apt-get update \
17
17
&& rm -rf /var/lib/apt/lists/*
18
18
19
19
# we use apt.postgresql.org
20
-
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
21
-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
22
-
RUN echo "deb-src http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
20
+
RUN install -d /usr/share/postgresql-common/pgdg
21
+
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
22
+
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
23
+
RUN echo "deb-src [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
Copy file name to clipboardExpand all lines: docs/tutorial/Dockerfile
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
FROM debian:bullseye-slim
1
+
FROM debian:bookworm-slim
2
2
3
3
ARG PGVERSION=14
4
4
ARG CITUS=postgresql-14-citus-11.1
@@ -19,9 +19,9 @@ RUN apt-get update \
19
19
&& rm -rf /var/lib/apt/lists/*
20
20
21
21
# we use apt.postgresql.org
22
-
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
23
-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
24
-
RUN echo "deb-src http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
22
+
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
23
+
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
24
+
RUN echo "deb-src [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
25
25
26
26
# bypass initdb of a "main" cluster
27
27
RUN echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf
Copy file name to clipboardExpand all lines: docs/tutorial/Dockerfile.app
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
FROM debian:bullseye-slim
1
+
FROM debian:bookworm-slim
2
2
3
3
ARG PGVERSION=14
4
4
@@ -17,9 +17,10 @@ RUN apt-get update \
17
17
&& rm -rf /var/lib/apt/lists/*
18
18
19
19
# we use apt.postgresql.org
20
-
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
21
-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
22
-
RUN echo "deb-src http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
20
+
RUN install -d /usr/share/postgresql-common/pgdg
21
+
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
22
+
RUN echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.list
23
+
RUN echo "deb-src [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main ${PGVERSION}" > /etc/apt/sources.list.d/pgdg.src.list
0 commit comments