Skip to content

Commit

Permalink
feat!: Python 3.12 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Oct 20, 2024
1 parent e39d100 commit a1ae231
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.22.3
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM registry.access.redhat.com/ubi9/python-311:1-77.1726696860 as base
FROM registry.access.redhat.com/ubi9/python-312:1-25.1726696862 as base

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / release-container / docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / release-container / docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / release-container / docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / release-container / docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
FROM ghcr.io/radiorabe/s2i-base:2.2.3

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 \
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ubi9/python-312/657b08d023df896ebfacf402"
title: Red Hat UBI9 Python 3.12
spec:
type: image
lifecycle: experimental
Expand Down

0 comments on commit a1ae231

Please sign in to comment.