1 Introduction Good coding habits are qualities that a good programmer should possess, but relying on people's habits and memory to ensure code quality is not always a reliable thing. People in the computer industry should be well aware that as long as it is man-made, there will be operational risks. This article explains how to build the code detection platform 2 Install SonarQube with Docker 2.1 Installation Installation through # Pull the Sonar image docker pull sonarqube:8.3.1-community # Run the example docker run --name sonarqube -p 9000:9000 -d sonarqube:8.3.1-community Then visit: http://localhost:9000/, the default administrator user and password are: Here we choose the free 2.2 Specifying a database Generally we will start a database such as
Using the The embedded database can only be used in testing scenarios. The embedded database cannot be extended or upgraded to new versions of SonarQube, and does not support migrating your data to other database engines. Therefore, it is recommended not to use the embedded 2.3 Entering the container By command: $ docker exec -it container_id bash bash-5.0# ls COPYING bin conf data elasticsearch extensions lib logs temp web bash-5.0# Can enter the 2.4 Installing plugins When the status shows 3. Detect code through Maven 3.1 Use by account and password Specify the address of the
3.2 Use via Token Of course, it is not a good habit to directly use Copy the token: In this way, you can operate through the token:
After executing the command, a new project will be automatically created on the interface and the detection results will be given: 4 Conclusion This is the end of this article about using Docker to build the code detection platform SonarQube and detect Maven projects. For more related content about using Docker to build the code detection platform SonarQube and detect Maven projects, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: VUE implements token login verification
>>: Solve the problem of invalid utf8 settings in mysql5.6
Table of contents 1. MySQL data backup 1.1, mysql...
<br />Original: Understanding Progressive En...
MySQL master-slave configuration and principle, f...
Some tips for deep optimization to improve websit...
Table of contents 1. Why do we need vue3? 2. Adva...
Q: I don’t know what is the difference between xml...
Using Javascript to implement countdown to close ...
Virtualization and containerization are two inevi...
This article example shares the specific code of ...
1. Download the software 1. Go to the MySQL offic...
Copy code The code is as follows: <!DOCTYPE ht...
01PARTCoreWebApi tutorial local demonstration env...
Table of contents First install wget View Help Ma...
Table of contents mvc mvp mvvm The source of Vue ...
Table of contents Preface 1. Cause of the problem...