-
Notifications
You must be signed in to change notification settings - Fork 303
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
don't use alpine for testing #1840
Conversation
/assign @panslava @cezarygerard @code-elinka |
@aojea: GitHub didn't allow me to assign the following users: code-elinka. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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. |
@@ -40,22 +40,6 @@ SRC_DIRS := cmd pkg | |||
|
|||
ALL_ARCH ?= amd64 arm arm64 ppc64le s390x | |||
NOBODY ?= nobody | |||
# Set default base image dynamically for each arch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you remove this switch?
the golang:1.18 is na multiarch image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's in the commit message 😄 , the BASEIMAGE parameter is not being used, at least I don't know where, it must be a legacy thing, because the sed below replaces ARG_FROM for BASEIMAGE, but there is no ARG_FROM 🤷
grep ARG Dockerfile.*
Dockerfile.404-server:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.404-server:ENTRYPOINT ["/ARG_BIN"]
Dockerfile.404-server-with-metrics:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.404-server-with-metrics:ENTRYPOINT ["/ARG_BIN"]
Dockerfile.e2e-test:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.echo:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.echo:ENTRYPOINT ["/ARG_BIN"]
Dockerfile.fuzzer:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.fuzzer:ENTRYPOINT ["/ARG_BIN"]
Dockerfile.glbc:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.glbc:ENTRYPOINT ["/ARG_BIN"]
Dockerfile.workload-controller:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.workload-controller:ENTRYPOINT ["/ARG_BIN"]
Dockerfile.workload-daemon:ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
Dockerfile.workload-daemon:ENTRYPOINT ["/ARG_BIN"]
/lgtm Thank you! |
/approve Let me check if I can approve it |
/assign @swetharepakula @bowei they may have more historical context |
is it possible to use |
This image changed here is used just for testing (and I think for building the binaries), is not the one used for the released artifacts, I see the Makefile calls Lines 155 to 164 in 3285151
and each independent dockerfile picks its own base image, per example the glbc image Lines 15 to 19 in 3285151
ingress-gce/Dockerfile.workload-controller Lines 15 to 19 in 3285151
this was the only way to do these things until docker created the multi-staged buld and the buildx releases, it will be nice to modernize the tooling here, kubernetes/release have some examples on how to use cloudbuild and buildx for it, see an example https://github.com/kubernetes/release/tree/master/images/build/go-runner |
@aojea |
that is why I've changed the |
ubuntu images use dash for sh, use bash explicitly
I don't have the context behind the BASE_IMAGE arg, but I think since this is test, it safe for us to merge. We can monitor and see if any errors occur and make the necessary changes then. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, code-elinka, swetharepakula 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 |
Alpine image doesn't have gcc installed, that is required if we want to test with the race detector.
It also uses muslc instead of libc, that use to be conflictive with network features.
Switching to the ubuntu images, we have to explicitly use
bash
, since ubuntu defaultssh
todash
, that doesn't support some bashism likeset -o pipefail
In addition, remove the BASEIMAGE variable that doesn't seem to be used anywhere, a
grep
with current state doesn't show any match.