Install Sonarqube on Aws on EC2 with Amazon Linux and Docker

Sebastian Velez Zuluaga
2 min readFeb 23, 2023

--

This topic I will show you how to installa and create the basic setup for Sonarqube.

  1. Download the app via .zip or docker. I will use docker

2. Create EC2 instance on aws. I will use a ti.micro with Amazon Linux.

Note : important create the instance with the politics of your organization and with t1.mricro doesnt work please cahnge the instance to medium.

3. Update instance.

4. Install docker

$sudo amazon-linux-extras install docker
$sudo usermod -a -G docker ec2-user
$sudo systemctl enable docker
$sudo usermod -a -G docker ec2-user
- - Logout -
$docker info

4. Check the image for sonarQube on docker hub

5. Create image

$ docker run -d --name sonarqube -p 9000:9000 sonarqube:latest

6. Verify the container is runing.

$docker ps

7. Go to the public ip and check the if the page is working.

My reference to this post is :

Done!

--

--