Jenkins Installation Using Podman

by Anish

Posted on Friday January 31, 2020

Referefce

Introduction

With the Red Hat Enterprise Linux (RHEL) 7.6 Beta released Podman was one of the first new features I have found. By offering a similar interface to the Docker command line.

podman - Client tool for managing containers. Can replace most features of the docker command for working with individual containers and images

In this example, we are going to install Jenkins using podman

Prerequisite

Installation of Podman on RHEL7/Centos7

sudo subscription-manager repos --enable=rhel-7-server-extras-rpms
sudo yum -y install podman

Installation of Podman on RHEL8

sudo yum module enable -y container-tools:1.0
sudo yum module install -y container-tools:1.0

Jenkins Installation

  • Create the following volumes to persist the Jenkins data using the following docker volume create commands:

    podman volume create jenkins-data
    
  • Download the jenkinsci/blueocean image and run it as a container in podman using the following podman container runcommand

    podman container run \
      --name jenkins-blueocean \
      --rm \
      --detach \
      --privileged \
      --publish 8080:8080 \
      --publish 50000:50000 \
      --volume jenkins-data:/var/jenkins_home \
      --volume jenkins-docker-certs:/certs/client:ro \
      jenkinsci/blueocean
    
  • Check the Jenkins process is up and running

    [[email protected] ~]# podman ps
    CONTAINER ID  IMAGE COMMAND CREATED STATUS PORTS NAMES
    41be560345af  docker.io/jenkinsci/blueocean:latest  /sbin/tini -- /us...  4 seconds ago Up 4 seconds ago 0.0.0.0:8080->8080/tcp  jenkins-blueocean
    
  • Copy the automatically-generated alphanumeric password from the Jenkins container location /var/jenkins_home/secrets/initialAdminPassword

    [[email protected] ~]# podman exec -it 68d350997923 sh
    / # cat /var/jenkins_home/secrets/initialAdminPassword
    c5b091551702478eb88bf887a154a64b
    

    or

    podman logs 68d350997923
    

Browse to http://localhost:8080 and wait until the Unlock Jenkins page appears.

Unlock Jenkin I

  • Custimze Plugins
    Customize Jenkins
  • Once all the Plugins are Installed
  • Create the required admin user
    Admin User creation for Jenkins
  • Open the webbrowser and go to address http://localhost:8080
  • Jenkins UI

    All right you have successfully created Jenkins start scheduling the jobs


    Related Jenkins


    Video Demo


    Thanku for reading !!! Give a Share for Support

    Asking for donation sound bad to me, so i'm raising fund from by offering all my eight book for just $9

    Referefce 8gwifi.org

    Online Terminals
    Online Terminals
    python Cryptography Topics
    Topics
    For Coffee/ Beer/ Amazon Bill and further development of the project Support by Purchasing, The Modern Cryptography CookBook for Just $9 Coupon Price

    Kubernetes for DevOps

    Hello Dockerfile

    Cryptography for Python Developers

    Cryptography for JavaScript Developers

    Go lang ryptography for Developers

    Here