-
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
Change e2e-test dockerfile #1863
Conversation
Hi @code-elinka. Thanks for your PR. I'm waiting for a kubernetes 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. |
/assign @panslava |
/cc @cezarygerard |
@@ -18,6 +18,14 @@ ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN | |||
|
|||
COPY cmd/e2e-test/run.sh /run.sh | |||
RUN apt-get update && apt-get install -y curl python | |||
RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-206.0.0-linux-x86_64.tar.gz | tar -zxf - |
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.
common pattern for multiarch image is to use the env variable to build the url, see this example https://github.com/kubernetes-sigs/kind/blob/7d26b50a129faf1a7024ce1337d516aada1db118/images/base/Dockerfile#L32
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-206.0.0-linux-$TARGET_ARCH.tar.gz
don't know if it is needed, but if the new URL download binaries without the right architecture it will fail, or is the new approach installer handling this internally?
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 seems the sdk shows how to do it here
https://github.com/GoogleCloudPlatform/cloud-sdk-docker/blob/master/emulators/Dockerfile
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.
Okay! Thank you. I added two vars:
- ARCH
- CLOUD_SDK_VERSION
And removed lines with installations, kept only downloading the directory.
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.
I am also not sure if it is used at all :D
/ok-to-test |
9e54849
to
7e7a08f
Compare
7e7a08f
to
abc3513
Compare
@aojea @cezarygerard @panslava Do you have other comments? |
@code-elinka in general looks good to me, but being honest, I am not really in the context of the issue this PR solves, let's assign to Cezary and Antonio /assign @cezarygerard |
a3d549c
to
747d814
Compare
@aojea Please check. I hope the list of comments will help to brush off the dust from this PR 😸 |
747d814
to
20cfedf
Compare
20cfedf
to
9853320
Compare
/lgtm let's iterate on this |
I don't have approval here XD |
9853320
to
ccf9366
Compare
ddi you rebase on the latest master? |
To support multiarch, e2e-test dockerfile should have non-arch dependant packages. Signed-off-by: Elina Akhmanova <elinka@google.com>
ccf9366
to
094724c
Compare
@aojea Yes, I rebased on your no-alpine changes. https://github.com/code-elinka/ingress-gce/commits/multiarch |
/assign @swetharepakula @spencerhance Could you please take a look? I changed debian version and gcloud-cli link (so it doesn't depend on architecture). |
@code-elinka: GitHub didn't allow me to assign the following users: spencerhance. Note that only kubernetes members with read permissions, 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. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, code-elinka 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 |
To support multiarch, e2e-test dockerfile
should have non-arch dependant packages.