fix LD_LIBRARY_PATH (#9017)

This commit is contained in:
Ehsan Saei 2022-09-05 20:16:36 +02:00 committed by GitHub
parent db3cdc04e4
commit 9a42ded8ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -19,4 +19,4 @@ set -o nounset
set -o pipefail
mkdir -p /modules_mount/etc/nginx/modules
cp -R /etc/nginx/modules /modules_mount/etc/nginx/modules
cp -R /etc/nginx/modules/* /modules_mount/etc/nginx/modules/otel

View file

@ -63,7 +63,7 @@ RUN bash -xeu -c ' \
# LD_LIBRARY_PATH does not work so below is needed for opentelemetry/other modules
# Put libs of newer modules under `/modules_mount/<other>/lib` and add that path below
# Could get complicated arch specific paths become a need
&& echo "/lib:/usr/lib:/usr/local/lib:/modules_mount/otel/lib" > /etc/ld-musl-x86_64.path
&& echo "/lib:/usr/lib:/usr/local/lib:/modules_mount/etc/nginx/modules/otel" > /etc/ld-musl-x86_64.path
RUN apk add --no-cache libcap \