Skip to content

Commit b784a4d

Browse files
committed
Add symbolic link for libpq and update ld.so cache
1 parent 219b87c commit b784a4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

circleci/images/exttester/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,11 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
186186
# copy the collected files from the collection container at once into the final container
187187
COPY --from=dev-tools-collection /collect/ /
188188

189+
ARG PG_MAJOR
190+
RUN set -eux; \
191+
ln -sf /usr/lib/x86_64-linux-gnu/libpq.so.5 \
192+
/usr/lib/postgresql/${PG_MAJOR}/lib/libpq.so.5; \
193+
echo "/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libpq.conf; \
194+
ldconfig
195+
189196
WORKDIR /home/circleci

0 commit comments

Comments
 (0)