$ docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE sonarqube latest db451e99d133 6 days ago 563MB $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS 68e92ac80d39 sonarqube:latest "/opt/sonarqube/bin.. #h ago Up #h 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp |
# this is my SonarQube platform sonar.host.url=http://my-hostname.mydomain.com:9000 # # project to inspect, with simple key sonar.projectKey=zdkey |
$ cd /project-path $ ${sonar-scanner-install-fodler}/bin/sonar-scanner -Dsonar.login=admin -Dsonar.password=admin-passwd INFO: Scanner configuration file: /root/sonar-scanner-4.7.0.2747-linux/conf/sonar-scanner.properties INFO: Project root configuration file: NONE INFO: SonarScanner 4.7.0.2747 INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit) INFO: Linux 5.15.0-0.30.19.el9uek.x86_64 amd64 INFO: User cache: /root/.sonar/cache WARN (note this): Property 'sonar.password' is deprecated. It will not be supported in the future. Please instead use the 'sonar.login' parameter with a token. WARN(note this): Your code is analyzed as compatible with python 2 and 3 by default. This will prevent the detection of issues specific to python 2 or python 3. You can get a more precise analysis by setting a python ver in configuration via parameter "sonar.python.version" ...shortened... INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://my-hostname.mydomain.com:9000/dashboard?id=zdkey INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://my-hostname.mydomain.com:9000/api/ce/task?id=AYVM2Dqz1nIHVz3KGj2J INFO: Analysis total time: 10.181 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 11.850s INFO: Final Memory: 27M/94M INFO: ------------------------------------------------------------------------ |