From e7fb4314948821c33aa7ca5e6ec764ed5840e08a Mon Sep 17 00:00:00 2001 From: Martin Schurz Date: Sun, 4 Aug 2024 10:43:43 +0200 Subject: [PATCH] Use Python 3.12 for Rocky 8 to be compatible with current Ansible version Signed-off-by: Martin Schurz --- rocky8-ansible-latest/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rocky8-ansible-latest/Dockerfile b/rocky8-ansible-latest/Dockerfile index 78f780a..b1f43c5 100644 --- a/rocky8-ansible-latest/Dockerfile +++ b/rocky8-ansible-latest/Dockerfile @@ -21,13 +21,13 @@ RUN yum makecache --timer \ sudo \ which \ hostname \ - python3 \ - python3-pip \ + python3.12 \ + python3.12-pip \ && yum clean all # upgrade pip because of the rust dependency error -RUN pip3 install --no-cache-dir --upgrade pip && \ - pip3 install --no-cache-dir ansible +RUN pip3.12 install --no-cache-dir --upgrade pip && \ + pip3.12 install --no-cache-dir ansible # Disable requiretty. RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers