maxfields2000 / dockerjenkins_tutorial

A repository for items learned in my Getting Started with Jenkins and Docker tutorial series
Apache License 2.0
737 stars 326 forks source link

Any update plan of the tutorial for the Docker for Mac ? #36

Closed johnwanggithub closed 7 years ago

johnwanggithub commented 7 years ago

Hi, firstly thanks a lot for writing the tutorial ! and I found the tutorial in jenkins2 is for local Docker-Toolbox version of a fully ephemeral jenkins environment(tested up to Docker 1.11). while now docker is 1.13 and docker for mac is ready. recently I tried a lot on docker(1.13) for mac and met some questions, such as: YADP plugin can not connect to docker damon in jenkins, no .docker under $home folder ..etc so just wonder if there is plan for updating the tutorial which will be great help. thanks in advance

maxfields2000 commented 7 years ago

There are! Sorry for the late response, I have a local version working on Docker for Mac, I just need to massage it and I'll get it up here t hen I plan to update the blog series or perhaps a slightly new blog referencing the evolutionary changes. Trying to get ahead of all the new Jenkins 2 stuff.

maxfields2000 commented 7 years ago

(Give me until next week to iron out the details and make sure everything is easy to understand, conceptually the problem with Docker for Mac is that it doesn't natively listen on a port, it only uses the docker.sock file, so I found an awesome proxy container I use to proxy the sock file to a port locally to work around it. "ehazzlet/docker-proxy" is really easy to use and I'll probably add that as part of the base configuration.).

rahulakash commented 7 years ago

Hi @maxfields2000, thank you for this awesome repo. Any updates on the tutorial for 'Docker for Mac'? It would be very helpful.

maxfields2000 commented 7 years ago

@rahulakash Updated! Take a look at the new "jenkins2" folder, it should be fully compatible with Docker for Mac (tested by many folks for me). Worked around Docker for Mac not having a native Docker TLS setup by using Evan Hazzlet's awesome docker-proxy container to proxy the docker socket file. Works for Docker-toolbox as well!