soulbird commented on code in PR #405:
URL: https://github.com/apache/apisix-docker/pull/405#discussion_r1068849224
##########
centos/docker-entrypoint.sh:
##########
@@ -22,18 +22,22 @@ PREFIX=${APISIX_PREFIX:=/usr/local/apisix}
if [[ "$1" == "docker-start" ]]; then
if [ "$APISIX_STAND_ALONE" = "true" ]; then
- cat > ${PREFIX}/conf/config.yaml << _EOC_
+ if [ ! -f ${PREFIX}/conf/config.yaml ]; then
Review Comment:
If you set the APISIX_STAND_ALONE variable, then your config.yaml does not
contain
```
deployment:
role: data_plane
role_data_plane:
config_provider: yaml
```
Then APISIX_STAND_ALONE will be invalid, which is obviously unreasonable.
A potential solution is to parse config.yaml to determine whether there is
any configuration related to shandalone, and if not, add it in, but this
solution is not easy to implement
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]