Coder Social home page Coder Social logo

vivekbuzruk / hygieia-starter-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hygieia/hygieia-starter-kit

0.0 0.0 0.0 46 KB

Quick start for local instance of Hygieia with Jenkins, Github and Sonar collectors

License: Apache License 2.0

Dockerfile 60.07% Shell 39.93%

hygieia-starter-kit's Introduction

Hygieia Starter Kit.

This Kit is a single image that contains the UI, API, Mongo, Github Collector, Sonar Collector, and Jenkins Collector. All of this can be configured with just a few commands. Note: This setup will take place of the manual steps for setup currently listed in the Hygieia documentation.

Prerequisites

The following are the prerequisites for setup: Download and install Docker

Setup Instructions

To configure the Starter Kit, execute the following steps:

  • Step 1: Download or Clone the Starter Kit If you do not already have the Hygieia starter kit installed, you can download or clone it from the GitHub repo.

  • Step 2: Pull Down the Starter Kit Container Navigate to the directory where you downloaded/cloned the repo from the previous step. Ex. for Windows:

cd C:\Users\[usernname]\hygieia-starter-kit

To pull down the start kit container run the following command:

docker-compose pull hygieia
  • Step 3: Add additional Certificates (OPTIONAL)

If you do not need this step or are unsure, skip and continue to Step 4.

Add .crt files to hygieia-starter-kit/hygieia-starter-kit/certs

  • Step 4: Configure Collector Properties Update docker-compose.yml to provide the below fields

Note: You only need to edit the values for collectors that you wish to configure/use. If you are not currently using them you may leave them blank or add these values later.

    environment: 
      - PROXY_URL=
      - PROXY_PORT=
      - PROXY_USERNAME=
      - PROXY_PASSWORD=
      - GITHUB_HOST=github.com
      - GITHUB_CRON=0/60 * * * * *
      #See https://hygieia.github.io/Hygieia/troubleshoot.html for how to get a personal access token
      - GITHUB_PERSONAL_ACCESS_TOKEN=
      - JENKINS_CRON=0/60 * * * * *
      - JENKINS_SERVER= #https://<username>:<password>@jenkinsInstanceUrl.com/
      - SONAR_CRON=0/60 * * * * *
      - SONAR_HOST=
      - SONAR_VERSION=6.7
      - SONAR_METRICS=ncloc,violations,new_vulnerabilities,critical_violations,major_violations,blocker_violations,tests,test_success_density,test_errors,test_failures,coverage,line_coverage,sqale_index,alert_status,quality_gate_details
      - SONAR_USERNAME=
      - SONAR_PASSWORD=

  • Step 5: Start/Stop the Container

To start:

If you added certs in Step 3, then run

docker-compose up -d --build

Otherwise, run

 docker-compose up -d 

To stop: NOTE: Stopping the container will delete all saved data. See docker-compose.yml for instructions on how to persist data.

docker-compose down

NOTE: All of the collectors, database, API and UI need to be running before you can test the app fully through the UI. If something is not working, check the logs to see if all of the different components are finished being built. After waiting for them to finish, everything should be running properly.

hygieia-starter-kit's People

Contributors

sbrenthughes avatar aochsner avatar rvema avatar benj58xu 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.