Skip to content

[REQUEST] Add pre-flight DNS connectivity check to startup scripts #395

@YashIIT0909

Description

@YashIIT0909

Pledge
N/A

Is your feature request related to a problem? Please describe.
On certain Linux distributions (such as Arch), the initial build process can fail during the apk add phase due to DNS bridging conflicts. The resulting "temporary error (try again later)" or EAI_AGAIN error occurs because the build container is unable to resolve external Alpine mirrors, creating an onboarding hurdle for contributors.

Describe the solution you'd like
Implement a connectivity check within the project's startup scripts. Before initiating the main build process, the script should execute a lightweight test in a temporary container (e.g., docker run --rm alpine nslookup dl-cdn.alpinelinux.org). If resolution fails, the script should provide a descriptive warning regarding the DNS conflict and suggest potential fixes, such as Docker daemon configuration.

Describe alternatives you've considered
Modifying the docker-compose.yml to use network: host for the build block was considered. However, this modifies core infrastructure for environment-specific issues and is less portable than an automated check combined with documentation.

Additional context
This enhancement aims to improve the overall Developer Experience (DX) and streamline the environment setup for contributors using Linux-based development environments.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions