Question: Optional defaults for environment variables in entrypoint.sh.tmpl #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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_envfunction inentrypoint.sh.tmpltakes 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.ymlfile 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
abrathat I am not aware of?Was also curious about this line:
What is run.sh? Does that directory even exist?