-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding config variables via run-app-docker-opts #5
Comments
Considering how app-env works (ie. for addons it expands the Docker link environment variables), this would need a little more thought (so "app-env" would need to be split into "app-env" and "app-profile", with a plugin that could dump "app-env" into "app-profile" as an alternative to one that adds "app-env" as "--env" options). |
So |
Actually, I think I'll deprecate the So basically, everything that isn't Actually, I'll keep the app-env hook between config and app-env-docker-opts, just with the understanding that anything that isn't providing basic key-value arguments should be using |
Now, the question is, is there a simple way to interpolate -e options between incoming variables without deserializing and re-serializing? I'm considering making it a codified fact that every line of app-env is an environment variable, which would make it as simple as inserting "-e" at the beginning of every line (which is trivial). |
Except, nuts, xargs doesn't deserialize So... I'm thinking there might be a new "sentinel value" argument to |
Alternately, while read pair; do
printf '-e '
sed 's/\s/\\\0/g' <<<"$pair"
printf '\n'
done Or maybe the sed+herestring part could even be done in-shell, or in |
See plushu/plushu-config#5: until app-env can be re-evaluated, this plugin will be providing its variables with profile code (the same way as it already does, but at the profile-specific name).
This was touched on in #4: Heroku adds config variables "before" executing the contents of
.profile.d
.This would remove most of the point of the release step (which still needs to exist because of stuff like the way plushu-addons defines linked container variables), and would replace the
app-env
hook (unless plushu-release-env were to defer to--env
options, which would break the aforementioned plushu-addons).The text was updated successfully, but these errors were encountered: