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

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


The following commit(s) were added to refs/heads/release/apisix-2.99.0 by this 
push:
     new 7d04db6  fix: stand-alone mode unavailable (#365)
7d04db6 is described below

commit 7d04db6aa7c203e9cafefc98afb11b99d2b5f2e7
Author: soulbird <[email protected]>
AuthorDate: Tue Sep 27 22:26:25 2022 +0800

    fix: stand-alone mode unavailable (#365)
    
    Co-authored-by: soulbird <[email protected]>
---
 centos/docker-entrypoint.sh     | 7 ++++---
 debian-dev/docker-entrypoint.sh | 7 ++++---
 debian/docker-entrypoint.sh     | 7 ++++---
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/centos/docker-entrypoint.sh b/centos/docker-entrypoint.sh
index e6ad3f2..3b6802b 100755
--- a/centos/docker-entrypoint.sh
+++ b/centos/docker-entrypoint.sh
@@ -23,9 +23,10 @@ PREFIX=${APISIX_PREFIX:=/usr/local/apisix}
 if [[ "$1" == "docker-start" ]]; then
     if [ "$APISIX_STAND_ALONE" = "true" ]; then
         cat > ${PREFIX}/conf/config.yaml << _EOC_
-apisix:
-  enable_admin: false
-  config_center: yaml
+deployment:
+  role: data_plane
+  role_data_plane:
+    config_provider: yaml
 _EOC_
 
         cat > ${PREFIX}/conf/apisix.yaml << _EOC_
diff --git a/debian-dev/docker-entrypoint.sh b/debian-dev/docker-entrypoint.sh
index 5f2c472..e64327e 100755
--- a/debian-dev/docker-entrypoint.sh
+++ b/debian-dev/docker-entrypoint.sh
@@ -23,9 +23,10 @@ PREFIX=${APISIX_PREFIX:=/usr/local/apisix}
 if [[ "$1" == "docker-start" ]]; then
     if [ "$APISIX_STAND_ALONE" = "true" ]; then
         cat > ${PREFIX}/conf/config.yaml << _EOC_
-apisix:
-  enable_admin: false
-  config_center: yaml
+deployment:
+  role: data_plane
+  role_data_plane:
+    config_provider: yaml
 _EOC_
 
         cat > ${PREFIX}/conf/apisix.yaml << _EOC_
diff --git a/debian/docker-entrypoint.sh b/debian/docker-entrypoint.sh
index e6ad3f2..3b6802b 100755
--- a/debian/docker-entrypoint.sh
+++ b/debian/docker-entrypoint.sh
@@ -23,9 +23,10 @@ PREFIX=${APISIX_PREFIX:=/usr/local/apisix}
 if [[ "$1" == "docker-start" ]]; then
     if [ "$APISIX_STAND_ALONE" = "true" ]; then
         cat > ${PREFIX}/conf/config.yaml << _EOC_
-apisix:
-  enable_admin: false
-  config_center: yaml
+deployment:
+  role: data_plane
+  role_data_plane:
+    config_provider: yaml
 _EOC_
 
         cat > ${PREFIX}/conf/apisix.yaml << _EOC_

Reply via email to