Provisioning Docker Containers on a Remote Host Using Jenkins Master

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Provisioning Docker Containers on a Remote Host Using Jenkins Master

Sujeet Kumar Padhi

I have Docker Engine installed on an Ubuntu 14.04 LTS Server. I have activated the Docker API as well by making some changes to the config files and I am able to access the APIs.

I have jenkins installed on another Ubuntu 14.04 server.

Can somebody please help me with the steps to build/run images on the remote docker server with the help if Jenkins.
I am not able to find any proper steps or plugin present in Jenkins to run the Docker commands remotely.

--
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/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Provisioning Docker Containers on a Remote Host Using Jenkins Master

nicolas de loof-2
Please give more details on what you want to do with this remote machine.

I assume you want to use it as a Jenkins agent to host build, not running on your master node. Then using docker plugin you can configure a "cloud" to access this remote Docker API (with adequate TLS keys registered as credentials) and define an agent template so your builds can allocate a transient build agent on this remote node. You'll need to define a label in this template so your job are configured with this label, and Jenkins knows they are supposed to run here.

2017-11-25 12:50 GMT+01:00 Sujeet Kumar Padhi <[hidden email]>:

I have Docker Engine installed on an Ubuntu 14.04 LTS Server. I have activated the Docker API as well by making some changes to the config files and I am able to access the APIs.

I have jenkins installed on another Ubuntu 14.04 server.

Can somebody please help me with the steps to build/run images on the remote docker server with the help if Jenkins.
I am not able to find any proper steps or plugin present in Jenkins to run the Docker commands remotely.

--
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/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CANMVJzneQAPVMTPhet%3DBBu8H27u0_Gb3tWDf7766ExSk8jv1Gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Provisioning Docker Containers on a Remote Host Using Jenkins Master

Sujeet Kumar Padhi
Thanks for the reply Nicolas. I am quite new to Devops. It would be very helpful if you can elaborate a little bit about the docker plugin and steps or any blogs/docs i can follow.
 

On Saturday, November 25, 2017 at 11:46:18 PM UTC+5:30, nicolas de loof wrote:
Please give more details on what you want to do with this remote machine.

I assume you want to use it as a Jenkins agent to host build, not running on your master node. Then using docker plugin you can configure a "cloud" to access this remote Docker API (with adequate TLS keys registered as credentials) and define an agent template so your builds can allocate a transient build agent on this remote node. You'll need to define a label in this template so your job are configured with this label, and Jenkins knows they are supposed to run here.

2017-11-25 12:50 GMT+01:00 Sujeet Kumar Padhi <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="p_REOQwpBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sujeet...@...>:

I have Docker Engine installed on an Ubuntu 14.04 LTS Server. I have activated the Docker API as well by making some changes to the config files and I am able to access the APIs.

I have jenkins installed on another Ubuntu 14.04 server.

Can somebody please help me with the steps to build/run images on the remote docker server with the help if Jenkins.
I am not able to find any proper steps or plugin present in Jenkins to run the Docker commands remotely.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="p_REOQwpBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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/d0c5417e-9180-4390-a715-b6b8fcba78a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Provisioning Docker Containers on a Remote Host Using Jenkins Master

danish09
Hi,

Google is your best friend. You can find numerous videos on youtube.

Thanks

On Sunday, 26 November 2017 10:38:52 UTC, Sujeet Kumar Padhi wrote:
Thanks for the reply Nicolas. I am quite new to Devops. It would be very helpful if you can elaborate a little bit about the docker plugin and steps or any blogs/docs i can follow.
 

On Saturday, November 25, 2017 at 11:46:18 PM UTC+5:30, nicolas de loof wrote:
Please give more details on what you want to do with this remote machine.

I assume you want to use it as a Jenkins agent to host build, not running on your master node. Then using docker plugin you can configure a "cloud" to access this remote Docker API (with adequate TLS keys registered as credentials) and define an agent template so your builds can allocate a transient build agent on this remote node. You'll need to define a label in this template so your job are configured with this label, and Jenkins knows they are supposed to run here.

2017-11-25 12:50 GMT+01:00 Sujeet Kumar Padhi <[hidden email]>:

I have Docker Engine installed on an Ubuntu 14.04 LTS Server. I have activated the Docker API as well by making some changes to the config files and I am able to access the APIs.

I have jenkins installed on another Ubuntu 14.04 server.

Can somebody please help me with the steps to build/run images on the remote docker server with the help if Jenkins.
I am not able to find any proper steps or plugin present in Jenkins to run the Docker commands remotely.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/865e9f0e-c178-4a4f-a4ee-504faf1c94b4%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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/cde92933-5eb1-4120-a367-a9d5c9992f44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.