-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tdnf cache mount for package cache
Before we were using (but not always) the perisistent tndf cache at `/var/cache/tdnf` and then also caching rpms a 2nd time at `/root/.cache/...`. This effectively gave us 2 caches of the same packages which is uneccessary. It also means we had to use flock to prevent multiple writers to the 2nd cache (something the tdnf cache would already be doing). This changes things so we just use one cache, the tdnf cache, and the rpms we feed into the toolkit chroot only contains the rpms needed for that build. Due to this change I noticed the toolkit actually wants both build and runtime dependencies because builds started failing due to missing dependencies (since we were no longer using a huge pool of rpms). So along with this change the package download now includes both build and runtime deps. Finally, since I was already messing with the install scripts I moved the multi-line commands we were feeding into buildkit into mounted files that we execute. The reason for this is purely cosmetic. The buildkit terminal output does not like our multi-line command strings. Signed-off-by: Brian Goff <[email protected]>
- Loading branch information
Showing
2 changed files
with
39 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters