Skip to content

Conversation

@d-fence
Copy link
Contributor

@d-fence d-fence commented Jan 7, 2026

The ADD directive used for remote resources sometimes fails when the resource is not available. In order to avoid that kind of failure, this commit adds a kind of cache of those resources. In order to do that, the ADD http... directives are converted into COPY and the distant resource is downloaded in a cache directory when a # CACHE xxxx comment is found just before the ADD. Where xxxxis the cache validity duration in seconds.

The `ADD` directive used for remote resources sometimes fails when the
resource is not available. In order to avoid that kind of failure, this
commit adds a kind of cache of those resources. In order to do that, the
`ADD http...` directives are converted into `COPY` and the distant
resource is downloaded in a cache directory when a `# CACHE xxxx`
comment is found just before the `ADD`. Where `xxxx`is the cache
validity duration in seconds.
@d-fence d-fence changed the title [IMP] runbot: add a cache system fro dockerfiles [IMP] runbot: add a cache system for dockerfiles Jan 7, 2026
@d-fence d-fence marked this pull request as draft January 7, 2026 15:43
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.

1 participant