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

Adding files using addFile invalidates the docker cache #26

Open
skullmaggots opened this issue Aug 27, 2014 · 0 comments
Open

Adding files using addFile invalidates the docker cache #26

skullmaggots opened this issue Aug 27, 2014 · 0 comments
Labels
Milestone

Comments

@skullmaggots
Copy link

When you add a file using addFile() the plugin always copies this file across during the preparation of the staging area. However on an incremental gradle build the file might not have changed, but you will get a new file created with a newer date/time. Therefore during the build docker creates a new layer for this step.

Once this happens all layers after this added file will also not use the cache. The causes some very slow builds and is real pain, especially given the extent to which I'm using docker.

Is it possible to not copy the file across to the staging area if it hasn't changed?

This would massively improve build times.

Note:- I'm using the native docker client not the REST api.

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

No branches or pull requests

2 participants