Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Python 3.12 #82

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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/
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,16 +31,16 @@

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

USER 1001

CMD $STI_SCRIPTS_PATH/usage

Check warning on line 46 in Dockerfile

View workflow job for this annotation

GitHub Actions / release-container / docker

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/

Check warning on line 46 in Dockerfile

View workflow job for this annotation

GitHub Actions / release-container / docker

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
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