-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Builds aren't isolated #38
Comments
Possible solution: docker inside of docker, run the builder in the sub container, run the worker in the main container (with |
So here is a proposition for a solution may work: When run inside of a container, docker-builder could have two different components: a leader and a follower. The leader runs on the host machine, unprivileged. It connects to a docker socket by Both pieces of functionality have been tested manually, and they do indeed work, but some questions will need to be answered about the implementation.
|
|
If possible, I would want the follower to receive everything it needs to complete the work in a single payload, including any information about where to send status updates. It's REST mannnnn. To be clear, I do not think that it's necessary for the container to be sent as a tarball over HTTP. I'd say follow the model of Travis CI and other CI services and ensure the follower containers are single-job only, wiped from existence upon completion. |
@meatballhat somebody's been reading django pull requests Do you think the communication between the leader and follower should happen over HTTP, maybe with a flag to indicate that the follower should exit after the build? Or do you think the data should be passed as an arg to the follower |
I think the latter makes sense to me, as waiting for the follower to be ready to receive a payload over HTTP introduces another problem. If |
Builds on the same build server aren't isolated from each other. This could definitely be a problem if we build a bunk version of a container upon which another container depends. Addressing this will be quite involved and may involve a re-architect of the whole build server system.
Welcoming suggestions on the design for this.
The text was updated successfully, but these errors were encountered: