Running sonarqube using Docker on Ubuntu 16.04/ 18.04
Running sonarqube using Docker is probably the simplest way of getting started with sonarqube. If you do not have Docker/ docker-compose installed on your Ubuntu please check the following posts to get them
https://onecompiler.com/posts/3v75qv9pk/installing-docker-in-ubuntu-16-04-18-04
https://onecompiler.com/posts/3v75rvbkp/installing-docker-compose-in-ubuntu-16-04-18-04
Once you have them, goto a folder and create docker-compose.yml file with following content
version: '3'
services:
sonarqube:
image: sonarqube:5.2
container_name: sonarqube
ports:
- "9000:9000"
from the console run the following command to start sonarqube
docker-compose up -d
This should start sonarqube and you can access it @ localhost:9000