News for hackers. Stuff that matters.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by Pellepelle3 on Thursday May 07, 2015 @02:42PM (#9507295)
We built this @ Techcrunch disrupt NYC last weekend, spent a few days cleaning it up and decided to opensource & share it with everyone. All feedback is welcome.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by jzelinskie on Thursday May 07, 2015 @05:55PM (#9508605)
Full Disclosure: I work on Quay.io at CoreOS.

I'm curious how security is handled with containerfactory.io.

We just gave a very detailed presentation on our build system at CoreOS Fest which will be available in video form soon. As a part of this talk, we mentioned all the security implications of building other people's container images.

Re:Show HN: Containerfactory.io – GitHub repo to docker image by Pellepelle3 on Thursday May 07, 2015 @06:13PM (#9508712)
Well the code to every part of this is open source so you can check and improve. The hosting part is on 10 digital ocean boxes all with one container on it so the build process is more isolated and anything goes wrong we kill and spawn a fresh box.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by jzelinskie on Thursday May 07, 2015 @07:16PM (#9509050)
Docker executes builds as root which provides a build the opportunity to escape the container and become root on the host machine. In containerfactory.io's current hosted setup, there are no guarantees that the machine an image is being built on hasn't already been compromised by a previous build. Quay.io has traditionally worked around this problem by patching user namespaces into docker, but they come with their own set of incompatibilities. As a result, we have found the best solution is to never trust the build machines given the risk of credentials being taken or builds being manipulated. Hosting your own copy completely avoids this issue, if you trust the people you work with ;)
Re:Show HN: Containerfactory.io – GitHub repo to docker image by toomuchtodo on Thursday May 07, 2015 @09:44PM (#9509561)
> Hosting your own copy completely avoids this issue, if you trust the people you work with ;)

We build containers from ephemeral t1.micros that only survive long enough to build the single container. I think that's secure enough for most orgs needs.

Re:Show HN: Containerfactory.io – GitHub repo to docker image by Pellepelle3 on Thursday May 07, 2015 @06:41PM (#9508862)
We also encourage people to host them selves. To have it completely there own.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by whacker on Thursday May 07, 2015 @03:41PM (#9507721)
How is this different from the build service provided by registry.hub.docker.com?
Re:Show HN: Containerfactory.io – GitHub repo to docker image by daddykotex on Thursday May 07, 2015 @04:00PM (#9507859)
From what I understand, this tools build a container and push it to the registry for every change, where as when you are using the registry alone, you have to push the images manually?

Am I right?

Re:Show HN: Containerfactory.io – GitHub repo to docker image by andyshinn on Thursday May 07, 2015 @04:05PM (#9507890)
The Docker Hub does also have a mode called "Automated Builds" which will pull down the repository, build an image based on the Dockerfile and push it. However, you do have to pick one or the other (you cannot push your own image to a repository configured as an Automated Build).
Re:Show HN: Containerfactory.io – GitHub repo to docker image by stdbrouw on Thursday May 07, 2015 @04:11PM (#9507927)
But you can manually trigger a build when automated builds are enabled, for rare cases when the automated trigger didn't do what you wanted. Works really well in practice.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by Pellepelle3 on Thursday May 07, 2015 @04:10PM (#9507924)
This is actually a open source project you can host your self, so have your own version of dockerhub auto build plus we added a way to build repos without dockerfile with assigning default dockerfiles based on language and you can push to any registry you want. Be it dockerhub or quay or your own registry.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by nickstinemates on Thursday May 07, 2015 @09:48PM (#9509575)
Very cool to see this. Awesome job! I met with a company last year who took the similar concept as

> plus we added a way to build repos without dockerfile with assigning default dockerfiles based on language and you can push to any registry you want

And applied to YC with it. Unfortunately they weren't accepted. I think it's a great concept.

If you'd like to chat more, my contact info is in my profile.

Re:Show HN: Containerfactory.io – GitHub repo to docker image by Pellepelle3 on Thursday May 07, 2015 @04:25PM (#9508020)
Also does the besides the stuff i mention in the other comment of, pushing to any registry, you can self host and modify, it also builds instantly and streams the logs.
Re:Show HN: Containerfactory.io – GitHub repo to docker image by lawnuke on Thursday May 07, 2015 @04:33PM (#9508092)
This is huge.