This is an automated email from the ASF dual-hosted git repository.

monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git


The following commit(s) were added to refs/heads/master by this push:
     new da7252d  fix: startup failure caused by file worker_events (#539)
da7252d is described below

commit da7252d19d57d9e8b264966995af334066150fe4
Author: AlinsRan <[email protected]>
AuthorDate: Thu Feb 1 11:07:20 2024 +0800

    fix: startup failure caused by file worker_events (#539)
---
 Makefile                    | 2 +-
 debian/docker-entrypoint.sh | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ff23754..cacc107 100644
--- a/Makefile
+++ b/Makefile
@@ -149,7 +149,7 @@ push-multiarch-on-latest:
        @if [ "$(shell echo "$(APISIX_VERSION) $(MAX_APISIX_VERSION)" | tr " " 
"\n" | sort -rV | head -n 1)" == "$(APISIX_VERSION)" ]; then \
                $(ENV_DOCKER) buildx build --network=host --push \
                        -t $(IMAGE_NAME):latest \
-                       --platform linux/amd64,linux/arm64 \
+                       --platform linux/amd64 \
                        -f ./debian/Dockerfile debian; \
        fi
        @$(call func_echo_success_status, "$@ -> [ Done ]")
diff --git a/debian/docker-entrypoint.sh b/debian/docker-entrypoint.sh
index 04fe00b..2d8a11e 100755
--- a/debian/docker-entrypoint.sh
+++ b/debian/docker-entrypoint.sh
@@ -54,6 +54,10 @@ _EOC_
     if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then
         rm -f "/usr/local/apisix/conf/config_listen.sock"
     fi
+
+    if [ -e "/usr/local/apisix/logs/worker_events.sock" ]; then
+        rm -f "/usr/local/apisix/logs/worker_events.sock"
+    fi
     
     exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon 
off;'
 fi

Reply via email to