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 without installing #498

Closed
akostadinov opened this issue Apr 19, 2023 · 2 comments
Closed

cache without installing #498

akostadinov opened this issue Apr 19, 2023 · 2 comments

Comments

@akostadinov
Copy link

Hello, I want to speed up container image builds so my idea is to cache the gems, then use the cache during the build.

For this I need the cache to be of the non-installed gem files. Ideally it would cache files for all PLATFORMS listed in Gemfile.lock.

I saw a related issue #489 but it is about running in an image, not building one.

Also I saw #451 but it will not help when building multiple architectures. At least cache would need to be different for each. Also layers unnecessary increase image size.

@eregon
Copy link
Member

eregon commented Apr 24, 2023

Caching .gem files is out of scope of this action.
This action is meant to be used on runners directly, not inside a Docker image, and not to build a Docker image.

@eregon eregon closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2023
@eregon
Copy link
Member

eregon commented Apr 24, 2023

Also BTW caching .gem files is unlikely to provide any speedup, it's a download vs a few downloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants