We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b784a4d commit fd93fbbCopy full SHA for fd93fbb
1 file changed
circleci/images/exttester/Dockerfile
@@ -187,9 +187,14 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
187
COPY --from=dev-tools-collection /collect/ /
188
189
ARG PG_MAJOR
190
+# fix broken system symlinks for libpq
191
RUN set -eux; \
- ln -sf /usr/lib/x86_64-linux-gnu/libpq.so.5 \
192
- /usr/lib/postgresql/${PG_MAJOR}/lib/libpq.so.5; \
+ cd /usr/lib/x86_64-linux-gnu; \
193
+ # pick the one real libpq.so.5.* file:
194
+ tgt=$(ls -1 libpq.so.5.* 2>/dev/null | head -n1) || exit 1; \
195
+ ln -sf "${tgt}" libpq.so.5; \
196
+ ln -sf "${tgt}" libpq.so; \
197
+ # teach ld.so about it
198
echo "/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libpq.conf; \
199
ldconfig
200
0 commit comments