linghengqian commented on issue #23283:
URL: 
https://github.com/apache/shardingsphere/issues/23283#issuecomment-1398608315

   @pengxianggui 
   
   - One possible idea is that we can change the existing process of reading 
YAML, and try to read environment variables once text in the format of `${}` 
such as `${SELF_JDBC_URL}` is detected.
   
   - Even now, there is a less intuitive way of doing it.  Since 
shardingsphere-jdbc-core comes with SnakeYAML 1.33, you can pre-write a YAML 
file or Template file that contains a series of `${}`, and then use SnakeYAML 
to read and replace this part of `${}` with other self-  Environment variable 
values ​​read with functions, and then serialized into YAML files required by 
shardingsphere-jbdc-core.  The process I am talking about is somewhat similar 
to the way nginx's docker image reads environment variables, refer to 
https://hub.docker.com/_/nginx .
   
   - I'm assuming you have another plan for submitting a PR.


-- 
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]

Reply via email to