containerbuildsystem / cachi2

GNU General Public License v3.0
5 stars 20 forks source link

Hermetic build of cachi2 image using Docker multi-stage building #527

Closed eskultety closed 2 weeks ago

eskultety commented 2 months ago

Draft PR on a what is to become a hermetic build of cachi2 itself based on the multi-stage Dockerfile feature where we copy over the most problematic bits we could not fetch in a convenient way otherwise: Go SDKs, NodeJS's corepack and Yarn.

Maintainers will complete the following section

Note: if the contribution is external (not from an organization member), the CI pipeline will not run automatically. After verifying that the CI is safe to run:

eskultety commented 2 months ago

Latest changes:

Note that this PR will remain in a draft for a while and the latest revision won't likely build hermetically due to reflink, I just want to see if the CI is going to be happy with the changes to progress further from there. Nevertheless, comments are always welcome!

eskultety commented 1 month ago

Some of the work was split into individual PRs - see also:

eskultety commented 2 weeks ago

With #528 and #544 merged to main, the remaining bit here is the RPM dependency prefetch support we could start relying on. Until then, closing this PR for the time being.