From 0aebf8e88703281e60df5bc3e2c54ef8181e4df8 Mon Sep 17 00:00:00 2001 From: Valerii Svydenko Date: Tue, 28 Nov 2023 11:53:29 +0200 Subject: [PATCH] chore:update python to 3.11.x (#138) Signed-off-by: Valeriy Svydenko --- README.md | 6 +++--- universal/ubi8/Dockerfile | 12 +++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 15313f98..7d1eddc8 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,9 @@ docker run -ti --rm \ |--------.NET---------|-------------------------------------| | `dotnet` |`dotnet-sdk-6.0` | |------PYTHON---------|-------------------------------------| -| `python` |`python39` | -| `setuptools` |`python39-setuptools` | -| `pip` |`python39-pip` | +| `python` |`python3.11` | +| `setuptools` |`python3.11-setuptools` | +| `pip` |`python3.11-pip` | | `pylint` |`` | | `yq` |`` | |--------RUST---------|-------------------------------------| diff --git a/universal/ubi8/Dockerfile b/universal/ubi8/Dockerfile index f5e4a5ea..297c0bb7 100644 --- a/universal/ubi8/Dockerfile +++ b/universal/ubi8/Dockerfile @@ -131,15 +131,13 @@ ENV GOBIN="/home/tooling/go/bin/" ENV PATH="$GOBIN:$PATH" # Python -RUN dnf -y module enable python39:3.9 && \ - dnf -y update && \ - dnf -y install python39 python39-devel python39-setuptools python39-pip nss_wrapper +RUN dnf -y install python3.11 python3.11-devel python3.11-setuptools python3.11-pip nss_wrapper RUN cd /usr/bin \ - && if [ ! -L python ]; then ln -s python3.9 python; fi \ - && if [ ! -L pydoc ]; then ln -s pydoc3.9 pydoc; fi \ - && if [ ! -L python-config ]; then ln -s python3.9-config python-config; fi \ - && if [ ! -L pip ]; then ln -s pip-3.9 pip; fi + && if [ ! -L python ]; then ln -s python3.11 python; fi \ + && if [ ! -L pydoc ]; then ln -s pydoc3.11 pydoc; fi \ + && if [ ! -L python-config ]; then ln -s python3.11-config python-config; fi \ + && if [ ! -L pip ]; then ln -s pip-3.11 pip; fi RUN pip install pylint yq