Skip to content
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

docker: cross compile binary #173

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

BenTheElder
Copy link
Member

see discussion in #171, not sure if this is a complete fix but it should help, we avoid qemu entirely

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 12, 2024
@k8s-ci-robot k8s-ci-robot requested a review from aojea December 12, 2024 17:57
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 12, 2024
WORKDIR /go/src
# make deps fetching cacheable
COPY go.mod go.sum ./
RUN go mod download
# build
COPY . .
RUN make build
ARG TARGETARCH
RUN GOARCH=$TARGETARCH make build

# build real cloud-provider-kind image
FROM docker:25.0-dind
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will make a seperate PR, but we have no reason to actually ship the daemon right? this image is bigger than we need, we just need the docker CLI, right? or am I missing something.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do, the cloud provider kind needs docker when running inside docker

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed we only need the CLI with @aojea

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed as another PR so we can decide separately #174, but included this existing commit to avoid diff since it's about to merge hopefully

@aojea
Copy link
Contributor

aojea commented Dec 12, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 12, 2024
@k8s-ci-robot k8s-ci-robot merged commit 8b5f02c into kubernetes-sigs:main Dec 12, 2024
5 of 7 checks passed
@BenTheElder
Copy link
Member Author

pull-cloud-provider-kind-conformance-parallel-ga-only

these jobs are not blocking merge

probably we should run just a subset of loadbalancer related tests and require it for merge?

@BenTheElder BenTheElder deleted the x-compile branch December 12, 2024 18:07
@BenTheElder BenTheElder mentioned this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants