Skip to content

Commit 8a71518

Browse files
authored
Fix Dockerfile compat for Citus before 11. (#946)
The citus_columnar.so file is only produced starting at Citus 11, not before that. To be compatible with previous versions if Citus, use a wildcard in the filenames in the Dockerfile COPY command.
1 parent 1ca7f1d commit 8a71518

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ RUN adduser docker sudo
167167
RUN adduser docker postgres
168168
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
169169

170-
COPY --from=build /usr/lib/postgresql/${PGVERSION}/lib/citus.so /usr/lib/postgresql/${PGVERSION}/lib
171-
COPY --from=build /usr/lib/postgresql/${PGVERSION}/lib/citus_columnar.so /usr/lib/postgresql/${PGVERSION}/lib
170+
COPY --from=build /usr/lib/postgresql/${PGVERSION}/lib/citus*.so /usr/lib/postgresql/${PGVERSION}/lib
172171
COPY --from=build /usr/share/postgresql/${PGVERSION}/extension/citus* /usr/share/postgresql/${PGVERSION}/extension/
173172

174173
COPY --from=build /usr/lib/postgresql/${PGVERSION}/lib/pgautofailover.so /usr/lib/postgresql/${PGVERSION}/lib

0 commit comments

Comments
 (0)