Difficulty: Easy
Estimated Time: 10-15 minutes

In this learning lab, you'll build Jenkins using a Docker image based on a Dockerfile. learn how to configure Jenkins to build Docker. You will then install Blue Ocean to then start building your first CI/CD pipeline. The High Level Steps are:

  1. Install Jenkins Docker Container
  2. Load and Launch Jenkins Dashboard
  3. Load and Launch Blue Ocean
  4. Verify Your Installation

This scenario took a new Jenkins build and configured it to build Docker Images. We then look an example HTTP server and created a build for it.

Learn how to launch a Private Docker Registry with our scenario.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

INSTALL JENKINS USING DOCKER

Step 1 of 6

Install Jenkins Docker Container

Install Latest Jenkins Container exposing the dashboard port 8080 with this commmand.

docker run -d -u root --name jenkins \ -p 8080:8080 -p 50000:50000 \ -v /root/jenkins:/var/jenkins_home \ jenkins:latest

All plugins and configurations get persisted to the host (ssh [email protected]) at _/root/jenkins. Port 8080 opens the web dashboard, 50000 is used to communicate with other Jenkins agents. Finally, the image has an alpine base to reduce the size footprint.