Skip to content

asim10/custom-harness-delegate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

custom-harness-delegate

CI version Docker Pulls Docker Image Size Docker Stars Security Scan Report

Custom Harness Delegate with Cloud Tooling

This repository contains a custom Dockerfile that extends the official Harness Delegate image. It is pre-configured with essential CLI tools and Python libraries to support advanced orchestration, cloud management, and infrastructure-as-code (IaC) tasks.

๐Ÿš€ Included Features

This image builds upon harness/delegate:26.01.88201 and adds:

  • Cloud CLIs: AWS CLI (v2) and Terraform.

  • Kubernetes: kubectl (latest stable).

  • Automation: Ansible, Python 3.9, and sshpass.

Dev Tools: jq, wget, gcc, and LDAP client libraries.

Python Libraries: * google-auth & google-api-python-client (GCP support)

  • pywinrm (Windows management)

  • hvac (HashiCorp Vault)

  • python-ldap, cryptography, beautifulsoup4, and more.

๐Ÿ› ๏ธ Build Instructions

To build this custom delegate locally, run the following command in the directory containing the Dockerfile:

docker build -t your-registry/harness-delegate-custom:latest .

๐Ÿณ Usage

Kubernetes Deployment

Update your Delegate Deployment.yaml to point to your new custom image:

spec:
  template:
    spec:
      containers:
      - name: delegate
        image: your-registry/harness-delegate-custom:latest

Environment Configuration

The image includes a custom path for specialized tools:

PATH: Includes /opt/harness-delegate/tools/

User: Runs as root to facilitate tool installation (standard for many specialized delegate tasks).

๐Ÿ›ก๏ธ Security & Maintenance

  • Base Image: us-docker.pkg.dev/gar-prod-setup/harness-public/harness/delegate:26.01.88201

  • Cleanup: The build process includes microdnf clean all and removes temporary installer files to minimize the image footprint and reduce the attack surface.

Updates: It is recommended to rebuild this image periodically to pull the latest security patches provided by microdnf update.

About

Custom harness delegate image repo

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors