Sometimes you wanted to convert the yaml files in to env variables which will be used on docker-compose.yaml. I had a valid usecase where i had to set spring yaml variables from docker-compose.
To do that it usually involves the flattening of yaml keys, converting them to uppercase, then set the value
This requires some minutes of manual work. so i wrote a tool which does this automatically. you can find this tool here
https://naveen17797.github.io/flatten/
This converts the spring yaml properties to env variables. For example
This deflate the nested foo.bar.bas and converts to env variable FOO_BAR_BAS.
0 comments:
Post a Comment