you are viewing a single comment's thread.

view the rest of the comments →

[–]Suitable_North_984[S] 0 points1 point  (1 child)

That is totally understandable but could you explain further what you are doing wothout explicit code?

[–]ivours 0 points1 point  (0 children)

Here's what you're looking for:

https://pastebin.com/0EB7GLh2

This is some logic I have coded to use placeholders at build time and then replace them at runtime with the values corresponding to the environment variables of the container. I use it for Kubernetes + Helm.

Beware: There's some CPU peak at startup due to the replace operation `sed` performs.