Skip to content

[IMP] Mount APT and PIP caches during build#698

Open
david-banon-tecnativa wants to merge 1 commit intomasterfrom
imp-mount-caches
Open

[IMP] Mount APT and PIP caches during build#698
david-banon-tecnativa wants to merge 1 commit intomasterfrom
imp-mount-caches

Conversation

@david-banon-tecnativa
Copy link
Copy Markdown
Contributor

@david-banon-tecnativa david-banon-tecnativa commented Apr 10, 2026

What:

This PR mounts APT and PIP caches during build time and a tmpfs at /tmp

Why:

This should speed up building images on local and during tests a little bit, as they will now only need to download (pip, apt) and build (pip) packages if they are a newer version.
This is done on v13+ only because older versions we don't test on CI shouldn't change if they work.

Workflow changes

If you place things in /tmp during build and intend on using them later, this won't work anymore

@yajo
Copy link
Copy Markdown
Contributor

yajo commented Apr 21, 2026

What happens if your host isn't debian-based?

@david-banon-tecnativa
Copy link
Copy Markdown
Contributor Author

What happens if your host isn't debian-based?

It shouldn't matter. They content of cache mounts is only used during image build and is isolated from the host filesystem.

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