diff --git a/README.md b/README.md index 1329a201..272bc93f 100644 --- a/README.md +++ b/README.md @@ -360,12 +360,11 @@ For more information, see http://www.pgbouncer.org/usage.html. ## kiwicom/pre-commit -- Base image: `python:3.8-alpine` -- packages: `git npm bash build-base pre-commit` +- Base image: `python:3.12-slim` +- packages: `git npm nodejs bash build-base golang pre-commit` +- supported Python versions: 3.12, 3.11, 3.10, 3.9, 3.8, 3.7 -We use this image to run our `pre-commit` hooks in CI -We also offer a `kiwicom/pre-commit:vX.X.X-full` where besides having the latest python version we also -support previous versions up to Python 3.7 +We use this image to run our `pre-commit` hooks in CI. ## kiwicom/python-rancher-compose diff --git a/pre-commit/Dockerfile b/pre-commit/Dockerfile index 1ea1007a..26553353 100644 --- a/pre-commit/Dockerfile +++ b/pre-commit/Dockerfile @@ -1,7 +1,7 @@ -FROM python:3.11-slim +FROM python:3.12-slim ENV PATH="$PATH:/root/.pyenv/bin:/root/.pyenv/shims" -ENV version=3.6.0 +ENV version=3.6.2 RUN apt update && \ apt install -y git golang bash curl build-essential libffi-dev libssl-dev libbz2-dev libncursesw5-dev libgdbm-dev liblzma-dev libsqlite3-dev tk-dev uuid-dev libreadline-dev nodejs npm python3-distutils zlib1g-dev && \ @@ -11,9 +11,9 @@ RUN apt update && \ pyenv install 3.8.18 && \ pyenv install 3.9.18 && \ pyenv install 3.10.13 && \ - pyenv install 3.11.7 && \ - pyenv install 3.12.1 && \ - pyenv global 3.12.1 3.11.7 3.10.13 3.9.18 3.8.18 3.7.17 && \ + pyenv install 3.11.8 && \ + pyenv install 3.12.2 && \ + pyenv global 3.12.2 3.11.8 3.10.13 3.9.18 3.8.18 3.7.17 && \ pyenv rehash && \ pip install pre-commit==$version && \ rm -rf /var/cache/apk/* && \