Skip to content

Latest commit

 

History

History
76 lines (43 loc) · 2.37 KB

Harness_CD_Setup_And_Usage.md

File metadata and controls

76 lines (43 loc) · 2.37 KB

Harness CI/CD Setup, Configuration and Usage guideline on Mac M2

Harness is the industry’s first Software Delivery Platform to use AI to simplify your DevOps processes - CI, CD & GitOps, Feature Flags, Cloud Costs, and much more.

Follow below steps to install, configure and use Harness on Mac M2

Prerequisite

On M2 Chip, we need to install Rosetta which enables a Mac with Apple silicon to use apps built for a Mac with an Intel processor.

$ /usr/sbin/softwareupdate --install-rosetta --agree-to-license

Enable the below configurations in Docker Desktop, which will enable using Rosetta on M2.

image

image

Installation and Configuration

Harness CI

Harness CI Community Edition (aka Drone) is a modern Continuous Integration platform to automate their build, test and release workflows using a powerful, cloud native pipeline engine.

TODO

Harness CD

Clone harness repo and provision all necessary services using docker-compose

$ git clone https://github.com/harness/harness-cd-community.git

$ cd harness-cd-community/docker-compose/harness

$ docker-compose up -d

Running docker-compose ps should show the below services provisioned.

image

Usage

Open http://localhost/#/signup and complete the registration form to start using Harness CD. Signed up user will be created as admin user.

We should be able to access the webpage post signup

image

Cleanup

Run below command to stop and remove containers ans networks

$ docker-compose down

Delete unused images

$ docker image prune -a

Troubleshooting

502 Bad Gateway Error

if Harness signup page is failing with 502 Bad Gateway, then follow instructions to comment out mongo configuration in docker-compose.yml file.

Resources