Skip to content

Commit

Permalink
Fix Dockerfile compat for Citus before 11. (#946)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DimCitus committed Oct 7, 2022
1 parent 1ca7f1d commit 8a71518
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ RUN adduser docker sudo
RUN adduser docker postgres
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

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

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

0 comments on commit 8a71518

Please sign in to comment.