Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Running Jenkins Inside Docker containers
brew cask install caskroom/versions/java8
brew install jenkins
If you want to run Jenkins inside Docker container:
[Captains-Bay]🚩 > bbrew install jenkins
==> Downloading http://mirrors.jenkins.io/war/2.109/jenkins.war
==> Downloading from http://ftp-chi.osuosl.org/pub/jenkins/war/2.109/jenkins.war
######################################################################## 100.0%
==> jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.
To have launchd start jenkins now and restart at login:
brew services start jenkins
Or, if you don't want/need a background service you can just run:
jenkins
==> Summary
🍺 /usr/local/Cellar/jenkins/2.109: 7 files, 74.3MB, built in 55 seconds
[Captains-Bay]🚩 >
[Captains-Bay]🚩 > open http://localhost:8080
This will open Jenkins page. Add the password using the below command:
Captains-Bay]🚩 cat /Users/ajeetraina/.jenkins/secrets/initialAdminPassword
c60a8961fdc04969966df5152e4ee56b
You will need to add Docker Plugin before proceeding.
We will use the below repo for this demo:
https://github.com/ajeetraina/hellonode
There is a Jenkinfile under root of the repoisitory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.