-
Notifications
You must be signed in to change notification settings - Fork 48
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
Buildkite should provide Docker-in-Docker functionalities #54
Comments
I ran into this same problem because the integration tests for our application relies on Docker networking being accessible. I ended up creating a custom buildkite agent based on the |
@christian-roggia @nightah would you guys care to make a PR to the chart optionally supporting DinD? |
@rimusz I will take over this task, but given the limited amount of free time I currently have it might take a few weeks |
Hey all, I just submitted a PR which I believe is pretty minimal and allows a wide-range of sidecar use-cases (e.g. DinD) with a single configuration parameter and template injection. What's nice is that any feature(s) needed by the "podContainers" (e.g. volumes) can be expressed using the chart's existing functionality and should just work. |
This ticket is related to the following issues happening when using Buildkite on Kubernetes:
The following configuration works successfully on Google Kubernetes Engine:
With the following pipeline:
I spent around 16 hours trying to figure out how to work around GKE security limitations and how to make Buildkite work with Docker-out-of-Docker, but I ended up reaching the same conclusion I did for Drone CI: Docker-in-Docker is more suitable for the Kubernetes architecture especially for Google Kubernetes Engine architecture.
The following article also explains really well why Docker-in-Docker (dind) is considered more functional in a Kubernetes environment:
https://applatix.com/case-docker-docker-kubernetes-part-2/
The main highlight from the article is the following:
Aside from that, as far as I know the following tools are all using dind instead of dood when deployed to a k8s environment:
It also looks like AWS is no longer working with DooD without additional configuration (i.e. Buildkite won't work out-of-the-box on ECS without the
--enable-docker-bridge
flag):https://support.cloudbees.com/hc/en-us/articles/360028151031-Docker-outside-of-Docker-no-longer-works-in-EKS
This is also the only configuration I am aware of that fully runs on GKE without breaking down when the docker container is used.
The text was updated successfully, but these errors were encountered: