当前位置:网站首页>Introduction and installation steps of sonarqube
Introduction and installation steps of sonarqube
2022-06-11 23:32:00 【Jiangxiaonan】
1. sonarqube Introduce
Official website :https://www.sonarqube.org/
SonarQube Is an open source code analysis platform , It is used to continuously analyze and evaluate the quality of project source code . adopt SonarQube We can detect duplicate code in the project , potential bug, Code specification , Security vulnerabilities and other issues , And pass SonarQube web UI display .

What we use here is the first ( Community Edition )
2. sonarqube install
sonarqube The installation needs to be based on PostgreSQL database
Download related images
# PostgreSQL database mirroring
docker pull postgres
# sonarqube Mirror image
docker pull sonarqube:8.9.8-community
To write docker-compose.yml file
version: '3.1'
services:
postgres:
image: postgres
container_name: postgres
ports:
- 5432:5432
networks:
- sonarnet
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
sonarqube:
image: sonarqube:8.9.8-community
container_name: sonarqube
depends_on:
- postgres
ports:
- 9000:9000
networks:
- sonarnet
environment:
SONAR_JDBC_URL: jdbc:postgresql://postgres:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
networks:
sonarnet:
driver: bridge
start-up
docker-compose up -d

It is found that an error is reported as shown above , According to the log prompt, you need to modify
vi /etc/sysctl.conffile , Add a line .

vm.max_map_count = 262144
# And execute the command to refresh
[[email protected] sonarqube_docker]# sysctl -p
vm.swappiness = 0
net.core.somaxconn = 1024
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_max_syn_backlog = 1024
vm.max_map_count = 262144
[[email protected] sonarqube_docker]#
visit

The default username and password are admin.

thus sonarqube Introduction and installation of .
边栏推荐
- Remix localization, loading local contract file, local link Remix
- 2022年低压电工上岗证题目及在线模拟考试
- 【Day9 文献泛读】On the (a)symmetry between the perception of time and space in large-scale environments
- 抗原產品進入家庭,中國醫療器械企業迎來新藍海
- 2022 safety officer-b certificate theoretical question bank and simulation test
- The latest "capsule Network Overview" paper of imperial technology, etc., 29 pages of PDF, expounds the concept, method and application of capsule
- Implementation scheme of iteration and combination pattern for general tree structure
- require. context
- Method for WiFi wireless transmission module to access cloud platform using esp8266 chip scheme
- 商品热销排行【项目 商城】
猜你喜欢

Software installation and use, etc

Leetcode must review 20 lintcode (5466421166978227)

【自然语言处理】【多模态】ALBEF:基于动量蒸馏的视觉语言表示学习

2022 R1 quick opening pressure vessel operation test questions and online simulation test

VS code 编写汇编代码【微机原理】

Two ways of using reuqests in RF

Here we go! Dragon lizard community enters PKU classroom

2022 high place installation, maintenance and removal of simulated examination platform for operation certificate examination question bank

Remix localization, loading local contract file, local link Remix

Pad printing process flow and application precautions
随机推荐
Node version control tool NVM
Introduction to Solr Basics
I2C read / write process
The latest "capsule Network Overview" paper of imperial technology, etc., 29 pages of PDF, expounds the concept, method and application of capsule
Jetpack architecture component learning (3) -- activity results API usage
MySQL 8.0 decompressed version installation tutorial
免费分享1个新媒体运营必备的宝藏网站
2022高压电工考试题模拟考试题库及在线模拟考试
C collection of questions for project review
PHP mkdir(): Permission denied上传文件会把文件夹权限改为411权限
2022 safety officer-b certificate theoretical question bank and simulation test
Two way leading circular linked list (C language)
require. context
Handwritten simple promise
Here we go! Dragon lizard community enters PKU classroom
Live broadcast preview | featurestore meetup V3 is coming!
Vs code writing assembly code [microcomputer principle]
[day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect
oracle中dblink操作
Lake Shore VNF 系列低温恒温器系统——流动蒸汽中的样品