Git Product home page Git Product logo

docker-sonarqube-scanner's Introduction

SonarQube & Sonar Scanner on Docker Compose

Why to use it?

  • Catch bugs to prevent undefined behaviors
  • Find security vulnerabilities
  • Make sure your codebase is clean and maintainable
  • It's Open Source

Requirements

  • Docker
  • Docker Compose
  • Make

Usage

On Linux you may need to set this:

sudo sysctl -w vm.max_map_count=262144
  1. Copy these files to your project root

  2. Build SonarQube

build-sq
  1. Run SonarQube
run-sq
  1. Access http://localhost:9000/ and login with default credentials:
login: admin
password: admin
  1. Create and setup a project at the graphic interface.

  2. Fill up the project information at docker-compose.yml environment variables

    environment:
      - SONAR_HOST_URL=http://sonarqube:9000
      - SONAR_PROJECT_KEY=your_password
      - SONAR_PROJECT_NAME=your_project_name
      - SONAR_PROJECT_VERSION=0.1
      - SONAR_PROJECT_SOURCE=/usr/src/
      - SONAR_PROJECT_BASE_DIR=/usr/src/
      - SONAR_SCM_PROVIDER=git
      - SONAR_PROJECT_LANGUAGE=py
      - SONAR_SOURCE_ENCODING=UTF-8
  1. Build Sonar Scanner
build-sq
  1. Run Sonar Scanner
run-sq
  1. Check the results at http://localhost:9000/

docker-sonarqube-scanner's People

Contributors

dmenezesgabriel avatar

Watchers

 avatar  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.