-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add FileOp to LLB #396
Comments
SGTM Maybe we should add xattr stuff later. |
@AkihiroSuda As a way to override like chown? Maybe optional modtime override as well. Could be useful for reproducible timestamps. |
As it happens I was just looking at the use of various copy helpers in my projects and this looks like a good/useful replacement AFAICT. Is the intention to completely replace the existing (unimplemented?) |
Yes, this is same as previously discussed |
Couple of random things which would be useful in this: I have a usecase for Does |
Is your case more about getting the error or just ignoring the error if the source file does not exist? Eg. would buildkit/frontend/gateway/client/client.go Lines 22 to 23 in c3846bd
It should either create parents automatically or be a flag. |
I need to probe for whether a specific file exists or not, so I need to distinguish (somehow) between that file not existing and some other error which might happen while solving. However:
Seem like a much (much!) better way to address my use case! (once I address what is being discussed in #472). Thanks!
I agree (personally I'd go for a flag, because I've been trained by |
Personally, I think the default behavior when running a Docker build on Windows (for a Linux container) should be that directories are always copied with execute permission. Running "find . -type d -exec chmod +x {} ;" is unnecessary when running the same build from a Linux box but is required when running the build on Windows. |
@ijc @tonistiigi regarding Looks like there's some subtle things in |
Fix repo references in docs
LLB doesn't currently support copying files directly and Dockerfile
ADD/COPY
uses acopy
binary executed throughexec
. While this works fine for caching, it isn't very optimal and could be better with a specific operation implementation. It has also appeared that some of the edge cases are not very easy to configure using the special binary.Most of the implementation for efficient copy procedure is already in
tonistiigi/fsutil
.Proposal for the definition:
@AkihiroSuda
The text was updated successfully, but these errors were encountered: