docker build inside official jenkins container -


i run official jenkins container on docker. need build docker image post action of successful build, jenkins container doesn't have docker binary.

i see couple options, first deriving own jenkins container official image docker binary available. second option use dedicated jenkins slave docker , other necessary runtime available. third option provision jenkins server ansible. run on container, clean, simple , repeatable.

how have solved problem? better solution in long run , why? highest priority able provision, configure , bootstrap whole ci infrastructure single ansible command. also, built docker container pushed registry , on, connectivity between components should optimum minimum complexity or manual configuration.

install docker in container not idea.

related article

however can reach docker daemon run on host mounting docker socket. should testing purpose, don't run in production mode since create security issue.

related article

you can find cleaner solution managing deployment/build process directly host watching exit status of jenkins container.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -