I wouldn't use Docker Slaves for this. Just install the docker client in
your Jenkins image and bind mount /var/run/docker.sock. Then a simple sh
step with docker build + docker push should do the trick.
If you don't want to use your jenkins master for this, you could make a
slave container with these tools and bind mount.
The Docker Slaves plugin is more about running your builds in containers
than it is about building images.
/Jacob
On 2017-12-03 18:42, Jeeva Chelladhurai wrote:
Hello All,
I would like to build Docker images from a Dockerized Jenkins. There
are multiple solution out there but what is the recommended solution...
I have been using ssh node as a work around, but I was told to use
https://wiki.jenkins.io/display/JENKINS/Docker+Slaves+Plugin . In
order for this plugin to work, I have to install docker inside the
Jenkins (my docker host is RHEL) and also mount the
/var/run/docker.sock or enable TLS. Isn't installing docker blow up
the size of the Jenkins image?
Any way to install just the docker client in side the Jenkins image?
Thanks,
Jeeva
--
Jeeva K S Chelladhurai
--
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-users+unsubscr...@googlegroups.com
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZV3Sc-fgYS_34PgEwRzsF20%3Dp6mbaagbR2Ehtz01op2%3Dw%40mail.gmail.com
<https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZV3Sc-fgYS_34PgEwRzsF20%3Dp6mbaagbR2Ehtz01op2%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/2162124b-1539-acc7-e92c-56ac5674aa7c%40larsen.net.
For more options, visit https://groups.google.com/d/optout.