-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Dockerfile for pullrequest nonroot build base image #3810
Conversation
Hi @zhangtbj. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions 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. |
/ok-to-test |
Hrm, this might be more tricky than it appears because there's no existing nightly images with the git-init-build-base or pullrequest-init-build-base name. |
Thanks @sbwsg , So is there any workaround to allow build and upload the new images first (maybe manually) before running test? I think this task (https://github.com/tektoncd/pipeline/blob/master/tekton/build-push-ma-base-image.yaml#L27) was not executed in the PR CI process... :( |
OK, I think what we should do is split this PR in two. In the first PR we just add the new images (while still keeping build-base building and in use). Then once that's merged open a new PR which switches git-init and pullrequest-init's base image over to the new ones. We can also remove mention of build-base at that time. @zhangtbj wdyt? |
Sure thing and good idea! @sbwsg , I just added the new dockerfile and new build config in this PR and keep using the original build image and config. Once it is merged, I can provide another PR to use the new generated images. |
Thank you! 🙏 |
/test pull-tekton-pipeline-integration-tests |
All tests passed now. Please help to move forward. Thanks all! :) |
/retest |
1 similar comment
/retest |
Interesting, it passed before, but fail at integration-tests, but we didn't change the code of those tests... |
Try rebasing on top of |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbwsg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @sbwsg , I rebased my PR, the test passed now. |
/lgtm |
Changes
As discussed in the issue: #3746
It was planed to support to run pullrequset init image by both root and non-root USER. And in the end, we have an agreement to provide a new Dockerfile on
distroless
and adding a nonroot 65532 USER.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
/kind misc
Release Notes
For pull requests with a release note: