Last active
February 27, 2018 15:41
-
-
Save ajeetraina/f39f5970856db99a9102d9beb08042bd to your computer and use it in GitHub Desktop.
Running Jenkins Inside Docker containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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