@@ -68,7 +68,7 @@ USER citus
68
68
69
69
# build postgres versions separately for effective parrallelism and caching of already built versions when changing only certain versions
70
70
FROM base AS pg14
71
- RUN MAKEFLAGS="-j $(nproc)" pgenv build 14.12
71
+ RUN MAKEFLAGS="-j $(nproc)" pgenv build 14.14
72
72
RUN rm .pgenv/src/*.tar*
73
73
RUN make -C .pgenv/src/postgresql-*/ clean
74
74
RUN make -C .pgenv/src/postgresql-*/src/include install
@@ -80,7 +80,7 @@ RUN cp -r .pgenv/src .pgenv/pgsql-* .pgenv/config .pgenv-staging/
80
80
RUN rm .pgenv-staging/config/default.conf
81
81
82
82
FROM base AS pg15
83
- RUN MAKEFLAGS="-j $(nproc)" pgenv build 15.7
83
+ RUN MAKEFLAGS="-j $(nproc)" pgenv build 15.9
84
84
RUN rm .pgenv/src/*.tar*
85
85
RUN make -C .pgenv/src/postgresql-*/ clean
86
86
RUN make -C .pgenv/src/postgresql-*/src/include install
@@ -92,7 +92,19 @@ RUN cp -r .pgenv/src .pgenv/pgsql-* .pgenv/config .pgenv-staging/
92
92
RUN rm .pgenv-staging/config/default.conf
93
93
94
94
FROM base AS pg16
95
- RUN MAKEFLAGS="-j $(nproc)" pgenv build 16.3
95
+ RUN MAKEFLAGS="-j $(nproc)" pgenv build 16.5
96
+ RUN rm .pgenv/src/*.tar*
97
+ RUN make -C .pgenv/src/postgresql-*/ clean
98
+ RUN make -C .pgenv/src/postgresql-*/src/include install
99
+
100
+ # create a staging directory with all files we want to copy from our pgenv build
101
+ # we will copy the contents of the staged folder into the final image at once
102
+ RUN mkdir .pgenv-staging/
103
+ RUN cp -r .pgenv/src .pgenv/pgsql-* .pgenv/config .pgenv-staging/
104
+ RUN rm .pgenv-staging/config/default.conf
105
+
106
+ FROM base AS pg17
107
+ RUN MAKEFLAGS="-j $(nproc)" pgenv build 17.1
96
108
RUN rm .pgenv/src/*.tar*
97
109
RUN make -C .pgenv/src/postgresql-*/ clean
98
110
RUN make -C .pgenv/src/postgresql-*/src/include install
@@ -211,7 +223,7 @@ COPY --chown=citus:citus .psqlrc .
211
223
RUN sudo chown --from=root:root citus:citus -R ~
212
224
213
225
# sets default pg version
214
- RUN pgenv switch 16.3
226
+ RUN pgenv switch 17.1
215
227
216
228
# make connecting to the coordinator easy
217
229
ENV PGPORT=9700
0 commit comments