Getting sterted with Gitness

img placeholder

Gitness is a Open-source code hosting & pipeline engine

By default, Gitness writes an SQLite database beneath /data in the running container.


Installation:
  1. Prepare Linux Machine

For Lab purpose i have created a VM with the following specs

Gitness VM
  • 4vCPU
  • 8GB RAM
  • 100GB free disk space
  • Rocky Linux 9 with static IP

  1. Create the Virtual Machines manually or using Packer template and clone using Terraform/OpenTofu. I have used the OpenTofu code, which will create VM with the required configuration

    img placeholder
    Tofu/terrform code to create Gitness VM from template

  2. Login to VM and install docker ce using the following commands.

1sudo yum install -y yum-utils
2sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  1. Install docker
1sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
  1. Add User to the docker group
1sudo usermod -aG docker $USER
  1. Enable and start the docker services
1sudo systemctl enable --now docker.service
2sudo systemctl enable --now containerd.service
  1. Use the following Docker command to install Gitness
1docker run -d \
2  -p 3000:3000 \
3  -v /var/run/docker.sock:/var/run/docker.sock \
4  -v /tmp/gitness:/data \
5  --name gitness \
6  --restart always \
7  harness/gitness
  1. Once the container is running, open <IP Address:3000>. Select SignUP enter UserID, Email and Password

In my case, i will be accessing using http://gitness.cloudbricks.local:3000


Watch the video on How to install Gitness