Skip to content

SonarQube

SonarQube

Containerized code quality & security scanner (with Postgres backend). Runs as Docker service—scan repos, enforce standards. Prompt for port on run.

Lab Environment Only

This tool is intended for ephemeral, short-lived lab environments and is not hardened for production use.

System Requirements

This script is designed for Ubuntu LTS and derivatives (Linux Mint, Pop!_OS). Other distributions (RHEL, Fedora, Debian, ARM) are not supported.

Installation Command

curl -sL https://raw.githubusercontent.com/ibtisam-iq/infra-bootstrap/main/scripts/services/sonarqube-cont.sh | sudo bash

What It Does

  • Runs preflight checks.
  • Installs Docker if missing.
  • Starts SonarQube LTS (sonatype/sonarqube:lts-community, restart=always).
  • Prompts for port (default 9000).
  • Disables ES bootstrap checks for quick start.

Access & Verify

  • URLs: Local: http://<YOUR-IP>:<PORT> | Public: http://<PUBLIC-IP>:<PORT> (script outputs both).
  • Credentials: admin/admin (change after login).
  • Verify: sudo docker ps | grep sonarqube (running?). Access UI, run first scan.
  • Wait Time: 2-3 min for full startup.

Official Docs: docs.sonarsource.com/sonarqube


Last update: January 21, 2026 11:27:57 PM