From 34106550658adf6013e03e41ffa0d8e3a260b5e7 Mon Sep 17 00:00:00 2001 From: Sara Saei <77292120+ssaei@users.noreply.github.com> Date: Mon, 30 May 2022 00:14:51 +0430 Subject: [PATCH] update nginx otel LD_LIBRARY_PATH (#8641) --- images/nginx/rootfs/Dockerfile | 1 - rootfs/Dockerfile | 2 ++ rootfs/Dockerfile.chroot | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/images/nginx/rootfs/Dockerfile b/images/nginx/rootfs/Dockerfile index 2d1d12178..75c63cff1 100644 --- a/images/nginx/rootfs/Dockerfile +++ b/images/nginx/rootfs/Dockerfile @@ -24,7 +24,6 @@ RUN apk update \ FROM alpine:3.14.6 ENV PATH=$PATH:/usr/local/luajit/bin:/usr/local/nginx/sbin:/usr/local/nginx/bin -ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/modules_mount/etc/nginx/modules ENV LUA_PATH="/usr/local/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/lib/lua/?.lua;;" ENV LUA_CPATH="/usr/local/lib/lua/?/?.so;/usr/local/lib/lua/?.so;;" diff --git a/rootfs/Dockerfile b/rootfs/Dockerfile index 1eab94c58..0bf9a0304 100644 --- a/rootfs/Dockerfile +++ b/rootfs/Dockerfile @@ -31,6 +31,8 @@ LABEL org.opencontainers.image.revision="${COMMIT_SHA}" LABEL build_id="${BUILD_ID}" +ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/modules_mount/etc/nginx/modules/modules + WORKDIR /etc/nginx RUN apk update \ diff --git a/rootfs/Dockerfile.chroot b/rootfs/Dockerfile.chroot index 5ea3ce835..04adccf8a 100644 --- a/rootfs/Dockerfile.chroot +++ b/rootfs/Dockerfile.chroot @@ -44,6 +44,7 @@ LABEL build_id="${BUILD_ID}" ENV LUA_PATH="/usr/local/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/lib/lua/?.lua;;" ENV LUA_CPATH="/usr/local/lib/lua/?/?.so;/usr/local/lib/lua/?.so;;" ENV PATH=$PATH:/usr/local/luajit/bin:/usr/local/nginx/sbin:/usr/local/nginx/bin +ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/modules_mount/etc/nginx/modules/modules RUN apk update \ && apk upgrade \