Git Product home page Git Product logo

harness-docker-runner's Introduction

Harness-Docker-Runner

How to use:

  • Create an .env file. It can be empty.
  • To build linux and windows GOOS=windows go build -o lite-engine.exe; go build
  • Generate tls credentials: go run main.go certs
  • Start server: go run main.go server
  • Client call to check health status of server: go run main.go client.

Instruction for Running it as Windows Service

If you want to install Harness-Docker-Runner as a service in Windows, please follow the bellow instructions.

Instruction for creating msi from Exe file

  go build -o harness-docker-runner-windows-amd64.exe
  • run the below command from root directory of Harness-Docker-Runner to create msi
  go-msi make --msi harness-docker-runner-svc.msi --version your_version

Installation

  • Download the msi (harness-docker-runner-svc.msi) from latest github release
  • Double click on the msi to start the installation process
  • Accept the liecence, click next and finish the installation.
  • You can test your service availibility by running below command in your cmd terminal
  curl http://localhost:3000/healthz
  • Logs for the runner can be found in path : C:\Windows\system32\harness-docker-runner-timestamp.log

Uninstallation

  • Double click on the msi to start the installation process
  • You will see three options Change, Repair and Remove
  • Click on Remove and finish.

Additional Instructions

  • Service will automatically started even if you re-started your VM
  • Please do not attemp to start/stop/delete the service manually, it may cause issue in uninstallation.
  • In case you see any issues and not able to verfiy the runner, Uninstall and install again using the msi

Error and Resolutions

Release procedure

Run the changelog generator.

docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u harness -p lite-engine -t <secret github token>

You can generate a token by logging into your GitHub account and going to Settings -> Personal access tokens.

Next we tag the PR's with the fixes or enhancements labels. If the PR does not fulfil the requirements, do not add a label.

Before moving on make sure to update the version file version/version.go.

Run the changelog generator again with the future version according to semver.

docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u harness -p lite-engine -t <secret token> --future-release v0.2.0

Create your pull request for the release. Get it merged then tag the release.

harness-docker-runner's People

Contributors

eoinmcafee00 avatar shubham149 avatar vistaarjuneja avatar devkimittal avatar aman-harness avatar sahithibanda01 avatar marko-gacesa avatar anurag-harness avatar rssnyder avatar rutvijmehta-harness avatar abhay084 avatar shobhitsingh11 avatar raghavharness avatar scottyw-harness avatar happyhebaby avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.