-
Notifications
You must be signed in to change notification settings - Fork 107
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
Plugin assumes that bash is present in container #23
Comments
This is a really tricky one. See buildkite-plugins/docker-compose-buildkite-plugin#124 for some more context. |
We could potentially also skip an interpreter for simple commands? |
Merged
@toolmantim yeah, that is a possibility. Perhaps we should just error for multi-line commands when there isn't a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The command is run like this:
When using Windows Server containers this doesn't work without some messing around. In my environment
bash -c
could be safely dropped. I would have expected that when adding the buildkite command to my pipeline file it would be the entire cmd section, rather than wrapped.bash also isn't present in some minimal Linux containers IIRC (I think Alpine just has 'sh', or at least it used to)
Personally I'd prefer this to drop the
bash -c
entirely and assume that the pipeline author would add this if required. If there's a reason for this being there that I'm missing, perhaps you could provide a mechanism for overriding the interpreter in the config. For example:The text was updated successfully, but these errors were encountered: