← Back to issue list

Cache retrieved base during build

View original Github issue

Metadata

Project
rockcraft
Number
#184
Type
issue
State
open
Author
jardon
Labels
—
Created
Updated
Closed
—

Current evaluation

Repeated packs still refetch the OCI base; maintainers proposed persistent reuse with expiry, while commit 38010383 only replaced Docker Hub with public ECR, leaving cross-run caching absent.

Suggested action: keep open

Reason: The report has an exact failure: every rockcraft pack fetches the base and can exhaust Docker Hub limits; cjdcordeiro explicitly called reuse-until-clean the simplest short-term fix. RockcraftImageService only memoizes ImageInfo within one process, while each new invocation calls oci.Image.from_docker_registry; #197 changes the source to ECR but does not implement persistent caching or settle the freshness policy.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 12 Complexity: 64 Confidence: 91 Actionability: 73

Issue body

I have hit my pull rate limit for docker hub because of rockcraft. Every time I run a `rockcraft pack` the base is fetched from docker and contributes against my limit. Can this image be cached and only removed during a `rockcraft clean` or a base change?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 12
Complexity: 64
Confidence: 91
Actionability: 73
keep open Repeated packs still refetch the OCI base; maintainers proposed persistent reuse with expiry, while commit 38010383 only replaced Docker Hub with public ECR, leaving cross-run caching absent.
stealth/space-bunny-alpha
Impact: 38
Quick Win: 12
Complexity: 55
Confidence: 91
Actionability: 68
keep open Base images are still pulled on every pack; a 6–8-hour TTL or global cache was discussed, but no cross-run cache exists. Switching from Docker Hub to public ECR reduces rate-limit impact.
qwen/qwen3.6-35b-a3b
Impact: 70
Quick Win: 29
Complexity: 40
Confidence: 70
Actionability: 70
keep open Feature request to cache retrieved base images across rockcraft pack runs to avoid Docker Hub pull rate limits. Currently, the base image is fetched from the registry every time.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 18
Staleness: 75
Complexity: 55
Confidence: 60
Support Request: 10
needs triage Feature request to cache the fetched base image during rockcraft pack to avoid Docker Hub pull rate limits. Maintainers discussed caching strategies in Feb 2023; project has since moved to ECR registry and added an image service, but no explicit base-image caching was implemented.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 60
Confidence: 90
Support Request: 5
close stale Feature request to cache Docker base images during rockcraft builds to avoid Docker Hub rate limits. Discussed caching strategies in Feb 2023 but has been inactive for over three years with no implementation or maintainer follow-up.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 75
Confidence: 85
Support Request: 10
close stale Feature request to cache Docker base images during rockcraft builds to avoid Docker Hub pull rate limits. Discussed by maintainers with proposed short-term time-based caching and long-term global cache solutions, but remains unimplemented and inactive for nearly three years.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/rockcraft#197 (confidence 96%)

    Commit 38010383 changed base retrieval from Docker Hub to public ECR, removing direct Docker Hub rate-limit exposure but not adding cross-run cache reuse.

Related issues

No related issues found above the similarity threshold.