Jenkins Docker Master, Dynamic Docker Agents

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins Docker Master, Dynamic Docker Agents

Oluwafemi Adenubi
Hello all, please I need help, setting up a jenkins/blueocean container to dynamically provision docker agents that are used to build images that end up being pushed to an image registry.

I've tried installing and configuring the docker plugin, the docker cloud and agent template, but everything I tried does not work.

It's surprising that on the jenkins documentation at jenkins.io, the jenkins/blueocean image and the docker:dind images were used to setup jenkins, but no single example exist on configuring a docker jenkins slave agent that builds a docker image in one of the pipeline stages.

I believe this is a very common step for most pipelines, given the ubiquity of running applications as containers.

I would appreciate it, if a step-by-step guide can be provided for this scenario to build a maven project.

Thank you for your help.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ec9ff80a-c6e6-434e-b5e0-3e539cf377b7%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Docker Master, Dynamic Docker Agents

Mark Waite-2
You're correct that there is no tutorial on jenkins.io that uses Docker in Docker to create and publish Docker images.  You might consider the following links as a source of ideas and alternatives (without assuming that any of the tutorials or articles are endorsed or official or best):

On Tue, Feb 4, 2020 at 11:09 AM femiadenubi <[hidden email]> wrote:
Hello all, please I need help, setting up a jenkins/blueocean container to dynamically provision docker agents that are used to build images that end up being pushed to an image registry.

I've tried installing and configuring the docker plugin, the docker cloud and agent template, but everything I tried does not work.

It's surprising that on the jenkins documentation at jenkins.io, the jenkins/blueocean image and the docker:dind images were used to setup jenkins, but no single example exist on configuring a docker jenkins slave agent that builds a docker image in one of the pipeline stages.

I believe this is a very common step for most pipelines, given the ubiquity of running applications as containers.

I would appreciate it, if a step-by-step guide can be provided for this scenario to build a maven project.

Thank you for your help.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ec9ff80a-c6e6-434e-b5e0-3e539cf377b7%40googlegroups.com.


--
Thanks!
Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtG1atPtG41GEy5FPyQ_6z%2BnrkLPLX4Qs4xU8QynhVR5%2Bg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Docker Master, Dynamic Docker Agents

Oluwafemi Adenubi
Hi Mark,

Thank you for your response. Though, I've gone through the kotacoda tutorial.
Would definitely peruse the other links and revert and hope to propose a tutorial that addresses this concern.


Regards.



On Tue, Feb 4, 2020, 8:05 PM Mark Waite <[hidden email]> wrote:
You're correct that there is no tutorial on jenkins.io that uses Docker in Docker to create and publish Docker images.  You might consider the following links as a source of ideas and alternatives (without assuming that any of the tutorials or articles are endorsed or official or best):

On Tue, Feb 4, 2020 at 11:09 AM femiadenubi <[hidden email]> wrote:
Hello all, please I need help, setting up a jenkins/blueocean container to dynamically provision docker agents that are used to build images that end up being pushed to an image registry.

I've tried installing and configuring the docker plugin, the docker cloud and agent template, but everything I tried does not work.

It's surprising that on the jenkins documentation at jenkins.io, the jenkins/blueocean image and the docker:dind images were used to setup jenkins, but no single example exist on configuring a docker jenkins slave agent that builds a docker image in one of the pipeline stages.

I believe this is a very common step for most pipelines, given the ubiquity of running applications as containers.

I would appreciate it, if a step-by-step guide can be provided for this scenario to build a maven project.

Thank you for your help.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ec9ff80a-c6e6-434e-b5e0-3e539cf377b7%40googlegroups.com.


--
Thanks!
Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtG1atPtG41GEy5FPyQ_6z%2BnrkLPLX4Qs4xU8QynhVR5%2Bg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEHA_ByJXCD0NPwOiW%2BPKsed-Tdxfj-FM2cA1kaUJOBUSeHVJA%40mail.gmail.com.