Giter Site home page Giter Site logo

cnescatlab / sonarqube-catlab Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 8.0 190 KB

Docker version of SonarQube with preconfigured plugins and settings dedicated to Continuous Integration.

Home Page: https://hub.docker.com/r/lequal/sonarqube

License: GNU General Public License v3.0

Dockerfile 14.67% Shell 39.24% Python 46.09%
sonarqube docker cnes software-factory ci

sonarqube-catlab's People

Contributors

begarco avatar diegorodriguez31 avatar gbonnefille avatar github-actions[bot] avatar lefl0w avatar louisjdmartin avatar thomascluzel avatar topin2001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sonarqube-catlab's Issues

Update quality gates to use Clean As You Code

Is your feature request related to a problem? Please describe.

We must update and synchronize quality gates from our internal sonarqube to use Clean As You Code

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Tests with RUN=no doesn't work from within a container

Describe the bug

The docker env is initialized before checking the "RUN" env variable. If the user tell RUN=no and is running from a container, this will produce a bug.

To reproduce

Run "RUN=no pytest" inside a docker container.

Expected behavior

This should work fine in a docker container.

Multi branch plugin

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

This image should use the multi branch community plugin mc1arke/sonarqube-community-branch-plugin.

Describe the solution you'd like

A clear and concise description of what you want to happen.

I would like the image to have the multi branch plugin.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Add Dockerfile language support

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

This image cannot handle Docker projects.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Last release of sonar-hadolint-plugin should be installed and available: https://github.com/cnescatlab/sonar-hadolint-plugin

Python support

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Python language should be supported like in Docker-CAT.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Same plugins as in Docker-CAT

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Java support

Update the image so that all it can perform the same analyses as Docker-CAT.

SonarQube CNES 3.1.0 doesn't contain CNES quality profile and quality gate

Describe the bug

Specific quality profiles and quality gate from CNES (RNC) are not available in SonarQube.

To reproduce

  1. Go to Quality profiles and check RNCs presence

Expected behavior

See quality Profile and Quality Gate

Screenshots & log

When launching container, error is

parse error: Invalid numeric literal at line 1, column 10

This is in https://github.com/cnescatlab/sonarqube/blob/6ba333a4e0870cb99a275bcc88154cc37a2ded45/scripts/functions.bash#L66 .

The server is not started, so the API doesn't work and the jq failed.
It's better to test the HTTP code return of curl. And if it's code 200, get the response to test the status.

Furthermore, It'll be better in CI during the check to verify quality profiles and quality gates with API.

Add cnes report 3.3.0

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

CatLab images must benefit of the new cnesreport version.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Version 3.3.0 of cnesreport must be installed in SonarQube image.

Support for Shell and Fortran

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Shell and Fortran languages should be supported, like in Docker-CAT.

Describe the solution you'd like

A clear and concise description of what you want to happen.

This image should have the same plugin as Docker-CAT for shell and fortran, namely Sonar i-Code CNES plugin.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

C/C++ support

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

C/C++ languages should be supported like in Docker-CAT.

Describe the solution you'd like

A clear and concise description of what you want to happen.

The same plugins as in Docker-CAT (except CNES CXX)

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Basic image

Basic image

Develop the minimal image to analyze code.

Test fails but CI is green

Describe the bug

The test logs indicates an error but the docker-cat image is published

To reproduce

Steps to reproduce the behavior.

  1. Commit anything
  2. Check CI logs to see errors

Expected behavior

CI may crash on errors

Fix CD to prevent early push

Describe the bug

The CD is done when merge on default branch (dev) and not master

Expected behavior

The CD should run only when merge on master

CD tries to deliver even when not ready

Describe the bug

A clear and concise description of what the bug is.

The CD workflow should run the delivery steps only when a milestone is completed.

To reproduce

Steps to reproduce the behavior.

  1. Merge a PR linked to an issue linked to a milestone
  2. See that CD fails when getting executed because it can't find a completed milestone

Expected behavior

A clear and concise description of what you expected to happen.

It must not try to release if the milestone is not completed.

User environment

Please complete the following information.

  • OS: GitHub Runner
  • Project version: 2.0.0

Automerge PRs

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

PRs should be merged automatically when reviewed and checked.

Describe the solution you'd like

A clear and concise description of what you want to happen.

A GitHub Actions workflow.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

  • Doing it manually

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.