-
Notifications
You must be signed in to change notification settings - Fork 39
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
Use with dockerized buildkite-agent #30
Comments
Hey, nice to hear from you again! I'll check it out. Probably need to go read some docker changelogs or something... |
Looks like If you can find a way to make the |
Sorry, I got my numbers mixed up. From a shell in a running buildkite-agent container in our kube cluster:
This is a thing that works™, it's probably not great but I intended to get further along before applying a ton of thought to it. The answer is the same as what you're doing here, right? Your Dockerfile doesn't have the agent in it, it's running on the host machine. I dug around the @buildkite-plugins organization trying to find examples of other plugins that ran as docker containers but didn't see any. The buildkite-agent container doesn't have ruby on it, so updating the command hook to just (optionally?) run the plugin natively wouldn't work either, although maybe that's a better path to go down than nested container madness? |
So I checked and when you run the agent inside a container, you're supposed to mount the docker socket into it, thus allowing the agent container to create more containers (https://buildkite.com/docs/agent/v3/docker#invoking-docker-from-within-a-build). That all works fine assuming you have no dependencies but I can't think of any sensible way to then make the As for supporting old docker versions... I mean it's easy enough to change |
Maybe I'll experiment with adding the |
The latest
buildkite-agent
docker container uses docker 17.12 (the one on the ubuntu 18.04 repos) which does not have the--mount
flag. NG, because this plugin uses the--mount
flag. I guess I could file this issue with buildkite but I know you better.test-summary-buildkite-plugin/hooks/command
Line 32 in 74831d6
n.b. I have no idea if I can get this to work inside the container anyway, but this is a first step.
The text was updated successfully, but these errors were encountered: