Fixed an issue where psql of v12 throwing "symbol not found" error while running Maintenance and Import/Export.

Copy libpq.so.5.12 from pg12-builder to the final container and create a symbolic link. 

Fixes #4835
This commit is contained in:
Dave Page
2019-11-07 12:12:43 +05:30
committed by Akshay Joshi
parent 69fba93152
commit 091d2cd0d2
2 changed files with 5 additions and 0 deletions

View File

@@ -166,6 +166,10 @@ RUN apk add --no-cache --virtual \
pip install --no-cache-dir gunicorn && \
apk del --no-cache build-deps
# We need the v12 libpq, which is only in the 'edge' build of Alpine at present
COPY --from=pg12-builder /usr/local/lib/libpq.so.5.12 /usr/lib/
RUN ln -sf /usr/lib/libpq.so.5.12 /usr/lib/libpq.so.5
# Copy the runner script
COPY pkg/docker/run_pgadmin.py /pgadmin4
COPY pkg/docker/entrypoint.sh /entrypoint.sh