[Bug] Issue with glibc version GLIBC_2.34 and GLIBC_2.32 not found in earlier operator tags #2272
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
#2205 changes the base image of
Dockerfile.buildx
fromregistry.access.redhat.com/ubi9/ubi-minimal:9.3
togcr.io/distroless/base-debian11:nonroot
which uses GLIBC_2.31. However, KubeRay operator requires GLIBC_2.32 and GLIBC_2.34. KubeRay operator Pod will fail with the following logs:This issue is similar to GoogleContainerTools/distroless#1342, so this PR upgrades the base image from
debian11
todebian12
.I can reproduce the issue by pulling images that are built by GitHub Actions. However, when I build the image following the same steps as GitHub Actions and then publish it to Quay, the issue does not occur.
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags strictfipsruntime -a -o manager-amd64 main.go CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -tags strictfipsruntime -a -o manager-arm64 main.go docker buildx build --push --platform linux/amd64,linux/arm64 --attest type=provenance,disabled=true -t quay.io/kevin85421/kuberay:test --file Dockerfile.buildx .
In order to reproduce the issue, I used https://github.com/ray-project/kuberay/blob/master/.github/workflows/image-release.yaml to build multi-arch images and publish to my Quay account.
Related issue number
Closes #2270
Checks