ADD|COPY option --keep-ownership #4001
Conversation
abebc1b to
4e161be
Compare
|
/assign @lsm5 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Dexus The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
edsantiago
left a comment
There was a problem hiding this comment.
Thanks for your PR! One showstopper in the tests, one strong encouragement to rework another.
|
@Dexus Commit title for |
I'm not abel to make DOC happy because the first commit is not from me, I took the first commit from the linked initial PR, from Ruben Jenster r.jenster@drachenfels.de, I'm not sure how can I fix this. Never used the The too long title for the one commit, will I change once I'm back on Place. |
d060a16 to
99607c2
Compare
6231a0c to
29828b3
Compare
|
So now all tests are green! 🥳 |
29828b3 to
f990ef0
Compare
This exposes the already existing KeepOwnership flag to the copy and add CLI commands. Co-authored-by: Ruben Jenster <r.jenster@drachenfels.de> Signed-off-by: Josef Fröhle <github@josef-froehle.de>
allow to keep the owner uid/gid off added/copied local files Signed-off-by: Josef Fröhle <github@josef-froehle.de>
f990ef0 to
ed44bea
Compare
|
fresh rebased |
Now we have to wait for this first: openshift/imagebuilder#227 once imagebuilder PR is merged you can rebase this PR and point to upstream imagebuilder. |
|
|
||
| replace github.com/opencontainers/image-spec => github.com/opencontainers/image-spec v1.0.2-0.20211123152302-43a7dee1ec31 | ||
|
|
||
| replace github.com/openshift/imagebuilder => github.com/Dexus-Forks/imagebuilder v1.2.4-0.20220518131701-b5c6586df000 |
There was a problem hiding this comment.
We'll need to fix this up once the imagebuilder merges and before we merge this PR.
|
One nit request. If you could rename the test |
| FROM busybox AS basis | ||
| RUN echo hello > /newfile && chown 123:456 /newfile | ||
| FROM basis | ||
| COPY --keep-ownership --from=basis /newfile /newfile_123_456 |
There was a problem hiding this comment.
The --keep-ownership option is redundant when there's a --from, so I don't know that we need this test.
|
@Dexus: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
A friendly reminder that this PR had no activity for 30 days. |
|
Correct me if i am wrong i think this is on hold because of moby/buildkit#2875 since |
|
A friendly reminder that this PR had no activity for 30 days. |
This is the follow-up PR that includes the initial PR from #3767 and is now fulfilled with additional changes, PRs (openshift/imagebuilder/pull/227) and tests.
Please follow the initial conversations in #3767.
What are the the intention for the PR:
ADD or COPY
--chownand--keep-ownershipresult inroot:rootfor the files.--chown 123:456result in123:456for the files.--keep-ownershipresult inUID:GIDfor the files, same as the origin source.Closes #3767
go.modneeds to add a replace forgithub.com/openshift/imagebuilderas long openshift/imagebuilder/pull/227 is unmerged