-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow passing array to env-file
parameter
#94
Comments
Thanks, glad you enjoy Crane. Now, even if your Golang knowledge is quite basic, it's really easy to get into and a pull request would be highly welcome! Should be similar to https://github.com/michaelsauter/crane/blob/c13cb961be4aeeca74c0b182481370af723093bb/crane/container.go#L137-143. Want to give it a shot? |
To be backward-compatible, and for sanity, I am wondering if it should also be possible to provide a string-value |
Crane is still not past 1.0, so I'm OK with breaking behaviour. I always wanted to be as close to raw Docker commands/flags as possible, so I think this is best implemented as array-only as that is what the official docs suggest. |
Closed via #98. |
Hey, thanks for the crane. It works fine and it's very helpful.
Yet I have found one case when I cannot use all Docker features.
In Docker reference there is an information about
run
command flags related to the environmental variables:While
env
parameter in crane is an array type, theenv-file
is string only, so I can't pass multiple env-files in a container definition.I have only basic golang knowledge, but it looks that /crane/container.go file needs small changes around
RunParameters.RawEnvFile
variable to make it working on array of strings.Thanks again for all the work :)
The text was updated successfully, but these errors were encountered: