Question: Optional defaults for environment variables in entrypoint.sh.tmpl #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was wondering why the
file_env
function inentrypoint.sh.tmpl
takes a second argument$2
, which seems to be an optional default value for the environment variable being set.However, from what I can see, this default value feature is not being utilized in the script. The file_env function is called twice without providing a second argument:
Additionally, I am not sure it makes sense to manage defaults outside of the
compose.yml
file and inside this template.Maybe I am missing something here?🤔
Also... why is it passed as a template in the compose file? Nothing seems to need the templating in the file.
Maybe this is just something related to
abra
that I am not aware of?