File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,19 @@ apt-get install -y --no-install-recommends --allow-downgrades \
7171rm -rf /var/lib/apt/lists/*
7272EOF
7373
74+ # ---------- copy helper binaries ----------
75+ COPY --from=dev-tools-collection /collect/ /
76+
7477# now do the symlink (outside the heredoc!) in its own layer
75- RUN ln -s /usr/lib/x86_64-linux-gnu/libpq.so.5 \
78+ RUN apt-get update && \
79+ apt-get install -y --no-install-recommends --reinstall libpq5 && \
80+ rm -rf /var/lib/apt/lists/* && \
81+ # 4. satisfy RUNPATH
82+ ln -sf /usr/lib/x86_64-linux-gnu/libpq.so.5 \
7683 /usr/lib/postgresql/${PG_MAJOR}/lib/libpq.so.5 && \
7784 echo "/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libpq.conf && \
7885 ldconfig
86+ ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libpq.so.5"
7987
8088USER circleci
8189WORKDIR /home/circleci
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ RUN apt-get update && \
190190 /usr/lib/postgresql/${PG_MAJOR}/lib/libpq.so.5 && \
191191 echo "/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libpq.conf && \
192192 ldconfig
193+ ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libpq.so.5"
193194
194195# add postgress to the path
195196ENV PATH=/usr/lib/postgresql/$PG_MAJOR/bin/:$PATH
You can’t perform that action at this time.
0 commit comments