You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/09/27 14:26:30 UTC

[apisix-docker] branch master updated: fix: stand-alone mode unavailable (#365)

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

spacewander 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 5b3ecda  fix: stand-alone mode unavailable (#365)
5b3ecda is described below

commit 5b3ecda422d724e60140f3fcb912829bc2844b33
Author: soulbird <zh...@outlook.com>
AuthorDate: Tue Sep 27 22:26:25 2022 +0800

    fix: stand-alone mode unavailable (#365)
    
    Co-authored-by: soulbird <zh...@gmail.com>
---
 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_