Skip to main content

Jenkins Installation

·182 words·1 min
Table of Contents
Devops - This article is part of a series.
Part : This Article

We will take a look at how to install Jenkins. Jenkins is typically run as a standalone application in its own process with the built-in Java servlet container/application server (Jetty).

We will look at a one of the easiest ways to install Jenkins using docker.

Docker
#

One of the easiest ways is to just run the below docker command. We will get the latest offical jenkins image pulled and created. We map the home path as a persistent volume to retain our configurations.

docker run -p 8080:8080 -p 50000:50000 -v ${pwd}:/var/jenkins_home jenkins/jenkins

You will see get a console output printing the auto generated password.

Alternatively, you can get the password from /var/jenkins_home/secrets/initialAdminPassword folder. Since we have mapped to our current directory, password can be found there as well.

Jenkins Install

Next, we can access the Jenkins application via http://localhost:8080. (Since I am running off a Virtual Server, I am accessing through the server IP below)

Jenkins URL

That’s it, we have a fresh jenkins instance up and running for our configuration. Further, we can proceed to install required plugins and create our first admin user.

Devops - This article is part of a series.
Part : This Article