From d610d126377929db4433d60d9c50d7e6512714c8 Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Mon, 17 Feb 2025 13:55:47 +0000 Subject: [PATCH 1/2] Add kayobe dockerfile arg to install python 3.12 --- docker/kayobe/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/kayobe/Dockerfile b/docker/kayobe/Dockerfile index eb821ba..2400d49 100644 --- a/docker/kayobe/Dockerfile +++ b/docker/kayobe/Dockerfile @@ -27,9 +27,16 @@ ENV container docker # CMD ["/usr/sbin/init"] + + ARG BASE_IMAGE="quay.io/rockylinux/rockylinux:8" +ARG USE_PYTHON_312="false" RUN dnf install epel-release -y && \ dnf update -y --nobest && \ + if [ "$USE_PYTHON_312" ] ; then \ + dnf -y install python3.12 && \ + ln -sf /bin/python3.12 /bin/python3 && \ + python3 -m ensurepip ; fi && \ dnf install -y gcc git vim python3-pyyaml findutils\ libffi-devel sudo which openssh-server e2fsprogs \ diffstat diffutils debootstrap procps-ng gdisk util-linux \ From 58e45f2b320b953be5e861394425226b79622633 Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Tue, 18 Feb 2025 13:32:12 +0000 Subject: [PATCH 2/2] Fix whitespace --- docker/kayobe/Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/kayobe/Dockerfile b/docker/kayobe/Dockerfile index 2400d49..a8be2fa 100644 --- a/docker/kayobe/Dockerfile +++ b/docker/kayobe/Dockerfile @@ -27,8 +27,6 @@ ENV container docker # CMD ["/usr/sbin/init"] - - ARG BASE_IMAGE="quay.io/rockylinux/rockylinux:8" ARG USE_PYTHON_312="false" RUN dnf install epel-release -y && \