-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed plugins using arm64 binaries in all container images #43031
Conversation
Dev build is running here to confirm the fix. |
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.
We know the exact archive file name in the Makefile: $(RELEASE).tar/gz
can we pass this as a docker build arg to get rid of the globbing that is fragile and can catch any other old release in the build/
directory?
@hugoShaka No we cannot, at least not rewriting a large portion of the workflow that we use for building all images. |
I saw that we're using the |
Yea I was looking at that. I think we might be able to avoid all globbing if we do what we're doing with distroless images, and build the file name inside the image. So instead of I just ran a dev build where |
a03a96d
to
0a36ae9
Compare
@fheinecke See the table below for backport results.
|
Due to a missing
ARG
directive + globbing, the build pulls in arm64 tarballs on top of amd64 tarballs, breaking amd64 images. This fixes the issue by adding the missing directive, and removing the globbing so that builds will fail rather than successfully produce broken images.This will require an
e
ref bump after https://github.com/gravitational/teleport.e/pull/4408 lands. Passing build (for plugins at least) is here.This is affecting the v16.0.0 release. I'll add a changelog entry to the backport PR.