Jenkins is an opensource automation server which takes care of continuous integration and continuous delivery in software development.

We use this tool to run automated software tests on it and report it. This tool helps in the delivery of the software.

So in this post we will look at installing jenkins in a small single board computer raspberrypi. We will be installing this on docker environment because it containerizes all the environment and it will be easy for us to manage the system.

Installing

Before installing jenkins check your system has docker and docker compose installed. If not ill soon write a blog on installing docker and docker compose on raspberrypi.

So i have collected the docker compose file for installing jenkins on raspberry pi and this template can be used for installing jenkins:

services:
  jenkins:
    image: jenkins/jenkins:latest
    ports:
      - "8080:8080"
    restart: unless-stopped
    volumes:
      - /your/path/jenkins:/var/jenkins_home

so here we are pulling the jenkins latest image or specific version of the jdk version can be mentioned. The port 8080 is mapped as the web interface can be accessed over the port.

Map the volume so persisting of data can be made and once the container is updated the data is persisted for future use.

After installation you will be prompted with the setup page once you go to the http://localhost:8080/ and setup the system accordingly.

On next blog post ill update the creating pipelines using jenkins.

Avatar photo

By Suryah

Leave a Reply

Your email address will not be published. Required fields are marked *