Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added sonarQube for code quality #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nasiruddinml
Copy link

feat: added sonarQube docker setup for code quality

Copy link
Contributor

@war1oc war1oc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the super fast PR @nasiruddinml san! 🎉
I have some comments, please take a look.
Also I think it's better not to have sonarqube in dev compose file as we may not want to run it everytime during development, I think we can have a discussion about this later in the meeting.

@@ -44,6 +44,32 @@ services:
depends_on:
- mysqldb

sonarqube:
container_name: sonarqube
Copy link
Contributor

@war1oc war1oc Oct 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A docker-compose generated container name would be more preferable in my opinion than a fixed name.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was set by mean to link with sonarscanner. Now, we can expose one more port for TCP connection. And omit this container_name.

- sonarqube_temp:/opt/sonarqube/temp
ports:
- 9000:9000
sonarscanner:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we pass the sonar.properties to sonarqube container itself in volume /opt/sonarqube/conf rather than another container?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically, sonar.properties most use case when we scan our code. Which handle by sonarscanner. So, I thought that users can change properties and make an easy scan.

@yashmurty yashmurty added the wontfix This will not be worked on label Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants