-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add a way to avoid eager interpolation of environment variables. #85
Comments
Good question! There are a couple of very complex issues here.
For the use case you describe, would it be possible to set useful defaults? |
Hello! |
fwiw you have issues configured so I can't reopen them even if I wanted to ;) |
Re-opened. :-) Sorry about that. Anyway, I think that a lot of it comes down to this:
...and this:
I recommend using |
I sometimes want docker-compose to do the interpolation, rather than cage. For example, I have a local testing script that turns arguments into environment variables to smuggle them through docker into the container, which then has a wrapper script that turns them back into arguments to call the interesting binary inside my container. Cage eagerly interpolates the environment variables, which is fine when calling
cage up
from the testing script but if I try to docage status
orcage logs
or whatever from another terminal window it tries (and fails) to eagerly interpolate again.As far as I see there's no workaround for this, but I'd like to see either a cage argument or maybe special syntax to allow deferring the interpolation.
I'm happy to implement this myself with some guidance on what would be accepted :)
The text was updated successfully, but these errors were encountered: