Convert yaml to env variables in a single step

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

This converts the spring yaml properties to env variables. For example

This deflate the nested and converts to env variable FOO_BAR_BAS.



Post a Comment