From 0923f360878eac3d1efb34768db6e2c51ba9c35e Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 17 Jun 2024 14:17:51 +0200 Subject: [PATCH] feat!: Python 3.12 --- .github/workflows/release.yaml | 2 +- Dockerfile | 16 ++++++++-------- catalog-info.yaml | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c059375..2e79bc2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,7 +15,7 @@ jobs: image: ghcr.io/radiorabe/s2i-python name: s2i-python display-name: RaBe S2I Python Minimal - tags: minimal rhel8 rabe s2i python python311 + tags: minimal rhel8 rabe s2i python python312 cosign-base-image-only: true mkdocs: uses: radiorabe/actions/.github/workflows/release-mkdocs.yaml@v0.21.2 diff --git a/Dockerfile b/Dockerfile index 8a40bf9..ee4853c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM registry.access.redhat.com/ubi9/python-311:1-62.1716478620 as base +FROM registry.access.redhat.com/ubi9/python-312:1-14 as base FROM ghcr.io/radiorabe/s2i-base:2.2.1 EXPOSE 8080 ENV \ - PYTHON_VERSION=3.9 \ + PYTHON_VERSION=3.12 \ PYTHONUNBUFFERED=1 \ PYTHONIOENCODING=UTF-8 \ LC_ALL=en_US.UTF-8 \ LANG=en_US.UTF-8 \ - CNB_STACK_ID=ch.rabe.it.stacks.ubi9-python-311 \ + CNB_STACK_ID=ch.rabe.it.stacks.ubi9-python-312 \ CNB_USER_ID=1001 \ CNB_GROUP_ID=0 \ PIP_NO_CACHE_DIR=off \ @@ -31,12 +31,12 @@ ENV BASH_ENV=${APP_ROOT}/etc/scl_enable \ RUN microdnf install -y \ nss_wrapper \ - python3.11 \ - python3.11-pip-wheel \ + python3.12 \ + python3.12-pip-wheel \ && microdnf clean all \ - && python3.11 -mvenv ${APP_ROOT} \ - && python3.11 -mpip install /usr/share/python3.11-wheels/*.whl \ - && python3.11 -mpip install build \ + && python3.12 -mvenv ${APP_ROOT} \ + && python3.12 -mpip install /usr/share/python3.12-wheels/*.whl \ + && python3.12 -mpip install build \ && chown -R 1001:0 ${APP_ROOT} \ && fix-permissions ${APP_ROOT} -P \ && rpm-file-permissions diff --git a/catalog-info.yaml b/catalog-info.yaml index 377ace2..93ff436 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -9,8 +9,8 @@ metadata: backstage.io/techdocs-ref: dir:. github.com/project-slug: radiorabe/container-image-rabe-s2i-python-minimal links: - - url: https://catalog.redhat.com/software/containers/ubi9/python-311/63f764b03f0b02a2e2d63fff - title: Red Hat Python 3.11 + - url: "https://catalog.redhat.com/software/containers/rhel9/python-312/657b088123df896ebfacf1f0" + title: Red Hat Python 3.12 spec: type: image lifecycle: experimental