Skip to content

Conversation

@mubbi
Copy link
Owner

@mubbi mubbi commented Jul 18, 2025

This pull request introduces a port management system to ensure required and optional ports are available before setting up Docker services or SonarQube. It includes new Makefile commands, scripts for port checking, and updates to documentation to guide developers on resolving port conflicts. The changes aim to improve the reliability of local development and SonarQube setup processes.

Port Management Enhancements:

  • Added check-ports and check-sonarqube-ports commands to the Makefile, which are automatically invoked during local-setup and sonarqube-setup to ensure required ports are available. Standalone commands check-ports-standalone and check-sonarqube-ports-standalone were also added for manual checks. [1] [2] [3] [4]
  • Introduced containers/check-ports.sh script to verify availability of required ports (e.g., 8081, 3306) and suggest alternatives if conflicts are detected.
  • Added containers/check-sonarqube-ports.sh script specifically for SonarQube-related ports (9000, 5432), with tailored suggestions for resolving conflicts.

Documentation Updates:

  • Updated containers/README.md to document new port management commands, required and optional ports, and instructions for resolving conflicts. This includes a new "Port Conflict Prevention" section. [1] [2] [3]

These changes collectively improve the developer experience by proactively identifying and addressing port conflicts, reducing setup errors, and providing clear guidance for resolution.

@mubbi mubbi merged commit ad56a38 into main Jul 18, 2025
4 checks passed
@mubbi mubbi deleted the feature/ports-check-before-setup branch July 18, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants