Use debian bookworm version of libc-bin

Ansible can deadlock when using a libc version lower than 2.33
because of ansible using os.fork for starting new processes.
See:
    https://sourceware.org/bugzilla/show_bug.cgi?id=24941
    https://github.com/ansible/ansible/issues/59642
    https://github.com/ansible/ansible/blob/devel/lib/ansible/utils/multiprocessing.py#L17

Change-Id: I76ba278d1ffecbd00886531b4554d7aed21c43df
This commit is contained in:
Albin Vass 2022-07-14 10:34:04 +02:00 committed by James E. Blair
parent dd9579fc1a
commit 559602910f
1 changed files with 6 additions and 0 deletions

View File

@ -69,7 +69,13 @@ COPY --from=builder /usr/local/lib/zuul/ /usr/local/lib/zuul
COPY --from=builder /tmp/openshift-install/kubectl /usr/local/bin/kubectl
COPY --from=builder /tmp/openshift-install/oc /usr/local/bin/oc
# We need libc >= 2.33 due to
# https://github.com/ansible/ansible/issues/78270
RUN echo 'APT::Default-Release "stable";' >> /etc/apt/apt.conf.d/99defaultrelease
RUN echo "deb http://deb.debian.org/debian/ bookworm main contrib non-free" > /etc/apt/sources.list.d/testing.list
RUN apt-get update \
&& apt-get -t bookworm install -y libc-bin \
&& apt-get install -y skopeo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*