Dockerfile

text/plain

Filename: Dockerfile
Type: text/plain
Part: 0
Message: Regression tests fail with musl libc because libpq.so can't be loaded
FROM postgres:16-alpine

ENV POSTGRES_HOST_AUTH_METHOD=trust
ENV LD_LIBRARY_PATH=/opt/lib

RUN mkdir -p /opt/lib && mv /usr/local/lib/libpq.so* /opt/lib

# This causes dlopen(libpqwalreceiver.so)
COPY <<-EOF /docker-entrypoint-initdb.d/create-subscription.sql
  CREATE SUBSCRIPTION sub1
  CONNECTION 'dbname=doesnotexist' PUBLICATION pub1
  WITH (connect = false);
EOF