-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
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.
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.
loki-build-image/Dockerfile
Outdated
@@ -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" |
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.
This would be set by DOCKER_BUILDKIT: 1
which I would favour.
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'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.
@jeschkies I changed how this was done, is 3b8bfc0 a better solution? |
**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.
What this PR does / why we need it:
The changes in #11130 broke
make build-image
andmake build-image-push
. This defaults the target arch added in #11130 so those make targets still work.