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

Default build-image target arch to amd64 #11148

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

trevorwhitney
Copy link
Collaborator

What this PR does / why we need it:

The changes in #11130 broke make build-image and make build-image-push. This defaults the target arch added in #11130 so those make targets still work.

@trevorwhitney trevorwhitney requested a review from a team as a code owner November 6, 2023 17:50
Copy link
Contributor

@jeschkies jeschkies left a comment

Choose a reason for hiding this comment

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

Could you try with DOCKER_BUILDKIT: 1 in the Makefile. Overall I'm not sure we should keep this target around. Alternatively we could migrate to all build targets like suggest here.

@@ -7,7 +7,7 @@

# Install helm (https://helm.sh/) and helm-docs (https://github.com/norwoodj/helm-docs) for generating Helm Chart reference.
FROM golang:1.21.3-bullseye as helm
ARG TARGETARCH
ARG TARGETARCH="amd64"
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be set by DOCKER_BUILDKIT: 1 which I would favour.

Copy link
Collaborator Author

@trevorwhitney trevorwhitney Nov 6, 2023

Choose a reason for hiding this comment

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

I'm confused on how this is supposed to work. The Makefile already sets DOCKER_BUILDKIT=1, but running make build-image fails. However, if I run DOCKER_BUILDKIT=1 make build-image it works as you have mentioned.

I just want make build-image to work, I don't care how we get there.

@trevorwhitney
Copy link
Collaborator Author

@jeschkies I changed how this was done, is 3b8bfc0 a better solution?

@trevorwhitney trevorwhitney merged commit e4f8c19 into main Nov 8, 2023
7 checks passed
@trevorwhitney trevorwhitney deleted the default-build-image-to-amd64 branch November 8, 2023 18:24
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
**What this PR does / why we need it**:

The changes in grafana#11130 broke `make
build-image` and `make build-image-push`. This defaults the target arch
added in grafana#11130 so those make targets still work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants