This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch release/apisix-3.1.0
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git
The following commit(s) were added to refs/heads/release/apisix-3.1.0 by this
push:
new ebe526f fix: etcdctl missing due to PATH var is not set correctly
(#402)
ebe526f is described below
commit ebe526fcdd43f99d250e34371830c40baa2eb6db
Author: fengxsong <[email protected]>
AuthorDate: Mon Jan 9 10:38:06 2023 +0800
fix: etcdctl missing due to PATH var is not set correctly (#402)
Signed-off-by: fengxsong <[email protected]>
Signed-off-by: fengxsong <[email protected]>
---
centos/Dockerfile | 2 ++
debian/Dockerfile | 2 ++
2 files changed, 4 insertions(+)
diff --git a/centos/Dockerfile b/centos/Dockerfile
index 7cf4bb9..bafcf07 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -27,6 +27,8 @@ RUN yum install -y
https://repos.apiseven.com/packages/centos/apache-apisix-repo
WORKDIR /usr/local/apisix
+ENV
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
+
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /usr/local/apisix/logs/access.log \
&& ln -sf /dev/stderr /usr/local/apisix/logs/error.log
diff --git a/debian/Dockerfile b/debian/Dockerfile
index 95b0849..4d4cceb 100644
--- a/debian/Dockerfile
+++ b/debian/Dockerfile
@@ -46,6 +46,8 @@ RUN set -ex; \
WORKDIR /usr/local/apisix
+ENV
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
+
RUN useradd -u 1001 apisix && chown -R apisix:apisix /usr/local/apisix
USER apisix