If you are looking to build a docker image for the Harness delegate. If you have many flavours of baseline docker, like :
-
Amazonlinux2
-
Alpine3
-
AmazonCorreto 17 – AmazonLinux
-
AmazonCorretto 17 – Alpine
-
RedHat UBI
Then which is the recommended one? As part of this article, we will be answering this question.
-
First, if you want to build images, we highly recommend using an immutable delegate over our legacy delegate.
-
Immutable delegate is based on
redhat/ubi8-minimal:8.4
-
The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable. You can find more information on RedHat Universal Base Image here: Red Hat Ecosystem Catalog
-
For Immutable delegate, the image Redhat UBI is the recommended approach : https://hub.docker.com/layers/harness/delegate/22.10.77221.minimal/images/sha256-93b[…]856a2208feb354b500f20e4c6e35098614282bfd54fa3?context=explore.
-
These are the steps we need to follow to build a docker image for the Harness delegate.