jagedn commented on issue #482:
URL: https://github.com/apache/apisix-docker/issues/482#issuecomment-1648794693
Hi sorry for the late response, I was offline prev week
So, the issue is not so related with kubernetes but with the dockerfile when
standalone is enabled at docker-entrypoint.sh
docker-entrypoint.sh creates 2 default files at startup: config.yaml and
apisix.yaml
What I would like from this sh is not to overwrite these files if they are
present (at least not overwrite apisix.yaml). To do it I think is enough to
check if file exists, something as:
```
if [ ! -f "${PREFIX}/conf/apisix.yaml" ]; then
cat > ${PREFIX}/conf/apisix.yaml << _EOC_
routes:
-
#END
_EOC_
fi
```
--
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]