From 559602910ff57f90e6478e748d17e0e298430c73 Mon Sep 17 00:00:00 2001 From: Albin Vass Date: Thu, 14 Jul 2022 10:34:04 +0200 Subject: [PATCH] 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 --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index c6cc17651c..0c1118ccb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/*