WIP: feat(docker): Add ability to substitute env vars with _file vars #1621
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1621
Loading…
Reference in New Issue
No description provided.
Delete Branch "donor_extortion/api:feature/docker-env-file"
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?
Allows usage of
_FILE
env vars for docker as mentioned in #704. Uses the solution linked in the comments minus the bash-isms (wasn't sure if you wanted to add bash to the image). Instead of manually specifying individual vars, it loops over all env vars checking if they start withVIKUNJA
and end with_FILE
.Also wasn't sure if the docs should be in the main config page where it explains env var usage or if it should go in one of the docker specific pages.
Resolves #704
Thanks for the PR!
I kind of hate to say this, but could you change it so that the file loading logic is happening directly in Vikunja and not in the entrypoint only? That would allow using this in native installations in e.g. nixos as well which do not use docker.
feat(docker): Add ability to substitute env vars with _file varsto WIP: feat(docker): Add ability to substitute env vars with _file varsWIP: feat(docker): Add ability to substitute env vars with _file varsto WIP: feat(docker): Add ability to substitute env vars with _file varsHey @donor_extortion are you still interested in this?
I got distracted by other things and completely forgot about this. I am still interested, though, it's unlikely I'd be able to work on it any time soon.