Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents

Table of Contents
excludeContents

Introduction

This document describes the steps to create Peer Jenkins server and establish the connection with the LF master Jenkins

Infrastructure Requirements for VM

Minimum hardware requirements:

...

  • Java
  • Web browser compatibility
  • Docker to be installed if Jenkins server running as a container


Installation Guide

Install Java

Since Jenkins is a Java application, the first step is to install Java. Update the package index and install the Java 8 OpenJDK package with the following commands

Code Block
languagebash
sudo apt-get update
sudo apt install openjdk-8-jdk


Install Docker

Step 1: First, in order to ensure the downloads are valid, add the GPG key for the official Docker repository to your system

...

Code Block
languagebash
sudo systemctl status docker


Setting up the Peer Jenkins server

Step 1 : Pulling the latest jenkins image from docker hub

...

  • if the Jenkins container is restarting again and again then check the logs using below command

    Code Block
    languagebash
    sudo docker logs --tail 50 –follow --timestamps Jenkins


  • If the logs are showing like below Wrong volume permissions?

    Code Block
    languagebash
    touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied
    Can not write to /var/jenkins_home/copy_reference_file.log. 

    The volume directory /data/jenkins need to be separated with the admin ownership to keep the Jenkins home

    Code Block
    languagebash
    sudo chown 1000 /data/Jenkins

    Then run the command: (Now the container is up and running)

    Code Block
    languagebash
    sudo docker ps -a 

    Executing into Jenkins container

    Code Block
    languagebash
    sudo docker exec -it jenkins /bin/bash 

    Inside the Jenkins container, go to /var/Jenkins_home/secrets/ directory. Copy the initial admin password like this

    Code Block
    languagebash
    cat /var/Jenkins_home/secrets/initialAdminPassword


Accessing Jenkins Peer and continue setup

Default port for Jenkins is 8080 and this should be open. To set up your new Jenkins installation, open your browser and type your domain or IP address followed by port 8080

...

If you’ve reached this point, you’ve successfully installed Jenkins.

Integration of Peer Jenkins with LF master Jenkins