Skip to content

Conversation

@harp-intel
Copy link
Contributor

This pull request refactors and improves the tools/build.Dockerfile to make the build process more robust and reliable, particularly by adding retry logic to package installations and repository additions. It also reorganizes some steps for clarity and maintainability, and comments out Java installation for now.

Key improvements and changes:

Robustness and Reliability:

  • Added retry logic (up to 5 attempts) for all critical apt-get install and add-apt-repository commands to handle transient network or package server issues, with clear error messages if failures persist. [1] [2] [3]

Build Process Organization:

  • Separated installation of minimum packages (for adding repositories), build tools, and perf/processwatch dependencies into distinct, clearly commented sections. [1] [2]
  • Moved and clarified the addition of the Git PPA and subsequent update to ensure the latest Git version is used. [1] [2]

Other Notable Changes:

  • Commented out Java installation steps, likely to avoid unnecessary dependencies or issues in the current build context.
  • Ensured static zlib build is correctly copied to the expected directory for both x86_64 and aarch64 targets.
  • Added explicit section for building perf and processwatch tools, improving clarity for future maintainers.

Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
@harp-intel harp-intel merged commit a220a3e into main Nov 9, 2025
2 checks passed
@harp-intel harp-intel deleted the builddockerclean branch November 9, 2025 06:32
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