Setting Up a Code Quality Inspection Platform with Docker: SonarQube and Localization

2019年7月9日 48点热度 0人点赞 0条评论
内容目录
  1. Get the PostgreSQL image
docker pull postgres
  1. Start PostgreSQL
docker run --name db -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d postgres
  1. Get the SonarQube image
docker pull sonarqube
  1. Start SonarQube
docker run --name sq --link db -e SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar -p 9000:9000 -d sonarqube

At this point, the platform is set up.

Docker Installation Guide for SonarQube to Resolve Errors
SonarQube should be compatible with version 8.5; higher versions may cause errors.

Article link: https://www.alibabacloud.com/blog/how-to-install-sonarqube-and-postgresql-with-docker-on-alibaba-cloud-ecs-instance_598733

痴者工良

高级程序员劝退师

文章评论