We use Packer from Hashi to build our Docker images in a Docker container with a Go Agent. Mind we build other images as well, KVM, ESX etc., which was one of the reasons for selecting Packer as what you can do for Docker is not as rich as a Docker/Dockerfile approach but it suffices for our needs.
On Friday, July 29, 2016 at 1:48:02 PM UTC+1, Hugh Acland wrote: > > Hi > > I have an agent running happily in a Docker container. It is provisioned > as a Node/NPM resource. > > First we do 'npn install' which pulls down into the agent all the node > dependencies. > > Then I need to build a Docker image, from the Dockerfile present in the > root of the repo material checked out into the Agent. > > The Agent does not have docker installed, and I have read differing > reports on the sanity of running Docker-in-Docker so I would rather not do > that. > > How can I build a Docker image from a Dockerfile in the Agent? Will I need > to have a non-dockerised Agent running to use the host Docker engine and > then mount the entire repo to the host volume? > > There must be a canonical way to achieve this, I guess the problem is that > the Agent is running in a container. > > Thanks for your advice > Hugh > > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
