Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian containers: cache debs for apt #52

Closed
spanezz opened this issue Aug 13, 2022 · 0 comments
Closed

Debian containers: cache debs for apt #52

spanezz opened this issue Aug 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@spanezz
Copy link
Contributor

spanezz commented Aug 13, 2022

We can;

  • keep a directory of .deb files in .cache/moncic-ci/debs
  • create a temp dir inside it, and hardlink all the debs
  • bind mount the temp directory read-write on the container's /var/cache/apt/archives
  • after build/bootstrap/upgrade, move new .debs files to the cache
  • for a multi-image bootstrap/upgrade, reuse the same temporary directory
  • expire old debs by their atime
@spanezz spanezz added the enhancement New feature or request label Aug 13, 2022
@spanezz spanezz self-assigned this Aug 13, 2022
spanezz added a commit that referenced this issue Aug 15, 2022
spanezz added a commit that referenced this issue Aug 15, 2022
spanezz added a commit that referenced this issue Aug 15, 2022
spanezz added a commit that referenced this issue Aug 15, 2022
spanezz added a commit that referenced this issue Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant