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

Cache and use cache of library origin code #465

Open
nderjung opened this issue May 10, 2023 · 1 comment
Open

Cache and use cache of library origin code #465

nderjung opened this issue May 10, 2023 · 1 comment
Labels
kind/enhancement New feature or request priority/low Nice to have issues thatare not urgent, but can be nagging.

Comments

@nderjung
Copy link
Member

nderjung commented May 10, 2023

To help in environments where remote internet access is not possible or to speed up "properclean" rebuilds, cache the origin library tarball/zip on disk. This issue tracks initially pulling and saving the origin code libraries as well as looking them up before invoking a prepare or build step.

To use the cache, ultimately, the make invocation command should be prefixed with LIB${LIBNAME}_URL.

https://github.com/unikraft/kraftkit/blob/staging/unikraft/app/application.go#L316-L319

We have to figure out how we set the appropriate name idiomatically in Go and how to gather the cache path, ultimately this feeds into make.WithVar:

eopts = append(eopts
  make.WithVar(lib.URL(), lib.OriginCachePath()),
)

(Method names lib.URL() and lib.OriginCachePath() are illustrative)

Cache can be saved to a new path to be added in config.KraftKit.Paths.Cache.

GitHub-Depends: #464

@nderjung nderjung added the kind/enhancement New feature or request label May 10, 2023
@github-project-automation github-project-automation bot moved this to 🧊 Icebox in KraftKit Roadmap May 10, 2023
@craciunoiuc craciunoiuc added the priority/low Nice to have issues thatare not urgent, but can be nagging. label Feb 29, 2024
@amroKerkizz
Copy link

Hi Im a student at the University of Texas at Austin, and for a project we were assigned I would like to work on this issue. I was wondering if this issue could be assigned to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request priority/low Nice to have issues thatare not urgent, but can be nagging.
Projects
Status: Backlog
Status: 🧊 Icebox
Development

No branches or pull requests

3 participants