Skip to content

Commit

Permalink
Update UBI image to keep pace with GLIBC version
Browse files Browse the repository at this point in the history
If you build the Compliance Operator from source and deploy it into a
cluster using `make deploy-local`, you'll see that the operator fails to
start because of a GLIBC error:

  compliance-operator: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by compliance-operator)
  compliance-operator: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by compliance-operator)

This is because the container image for golang:1.20 is referencing a
newer version fo GLIBC than what's available in the ubi8 minimal image.

This commit updates the ubi image so that we keep up with the GLIBC
version being referenced in newer golang versions.

Fixes #372
  • Loading branch information
rhmdnd committed Jul 28, 2023
1 parent b33b6c2 commit 5ccd28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY . .
RUN make manager

# Step two: containerize compliance-operator
FROM registry.access.redhat.com/ubi8/ubi-micro:latest
FROM registry.access.redhat.com/ubi9/ubi-micro:latest

ENV OPERATOR=/usr/local/bin/compliance-operator \
USER_UID=1001 \
Expand Down

0 comments on commit 5ccd28f

Please sign in to comment.