Real-time DevOps AWS Tasks: Setup Local Jenkins setup in 2 minutes.

Jay
2 min readSep 1, 2021

Jenkins is the most popular open-source CI tool and it is being used by small startups to large enterprise companies. If anyone started the DevOps carrier then definitely trainers teach about this tool.

It is always better to implement/practice new things from scratch, if we do like that then definitely we get a complete understanding of that topic. But the problem is, we can not perform these steps over and over again “uninstall — install — set up the Jenkins admin account — install suggested plugins”.

Source: https://unsplash.com/photos/LN_g3qA8ohg

So I have created a simple Dockerfile for myself with the required configurations and then created a docker image out of it. That’s it, Whenever I need a brand new local Jenkins setup, I will just launch a container with that image.

Source: https://unsplash.com/photos/SInhLTQouEk

Enough with the theory, let's get started with the demo. whenever/wherever I need a new Jenkins setup for testing, I will just execute below 1 line and the rest is magic.

bash <(curl -Ls https://gist.githubusercontent.com/jayasimha537/a83f8d85faa021869ccd0b8efc8f4d11/raw/6121c4772f01db73f9f47183ae5673f8ee2d31e6/jenkins_setup.sh )

After 2 mins (Depends on your internet speed for the first time), you can access the Jenkins at http://your_ip:8080. username and passwords are admin and admin.

If you want to customize more like default plugins ,username and password then you fork my git repo and play around

--

--