From 46c1538b7eab1f905d387cc60e169844422dcc7f Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Mon, 20 Nov 2023 11:39:39 +0100 Subject: [PATCH] Include Py3.11 and Py3.12 images --- python/3.11/Dockerfile | 32 ++++++++++++++++++++++++++++++++ python/3.12/Dockerfile | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 python/3.11/Dockerfile create mode 100644 python/3.12/Dockerfile diff --git a/python/3.11/Dockerfile b/python/3.11/Dockerfile new file mode 100644 index 0000000..efd1f60 --- /dev/null +++ b/python/3.11/Dockerfile @@ -0,0 +1,32 @@ +FROM indigodatacloud/ci-images:base-u22 +MAINTAINER Pablo Orviz + +RUN apt-get update \ + && apt-get install --no-install-recommends -y wget \ + git \ + python3.11 \ + build-essential \ + libcurl4-gnutls-dev \ + libffi-dev \ + libssl-dev \ + libxml2-dev \ + libxslt1-dev \ + libgnutls28-dev \ + default-libmysqlclient-dev libsqlite3-dev \ + curl \ + && rm -rf /var/lib/apt/lists/* + +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 11 +RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 11 + +RUN curl -s -L https://bootstrap.pypa.io/get-pip.py | python +RUN pip install tox flake8 pylint pydocstyle pep8 bandit +# otherwise issues with twine<=1.10.0 +RUN pip install twine==1.11.0 +RUN pip install -U wheel setuptools + +# Standard SSH port +EXPOSE 22 + +# Default command +CMD ["/usr/sbin/sshd", "-D"] diff --git a/python/3.12/Dockerfile b/python/3.12/Dockerfile new file mode 100644 index 0000000..75ccce9 --- /dev/null +++ b/python/3.12/Dockerfile @@ -0,0 +1,32 @@ +FROM indigodatacloud/ci-images:base-u22 +MAINTAINER Pablo Orviz + +RUN apt-get update \ + && apt-get install --no-install-recommends -y wget \ + git \ + python3.12 \ + build-essential \ + libcurl4-gnutls-dev \ + libffi-dev \ + libssl-dev \ + libxml2-dev \ + libxslt1-dev \ + libgnutls28-dev \ + default-libmysqlclient-dev libsqlite3-dev \ + curl \ + && rm -rf /var/lib/apt/lists/* + +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 12 +RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 12 + +RUN curl -s -L https://bootstrap.pypa.io/get-pip.py | python +RUN pip install tox flake8 pylint pydocstyle pep8 bandit +# otherwise issues with twine<=1.10.0 +RUN pip install twine==1.11.0 +RUN pip install -U wheel setuptools + +# Standard SSH port +EXPOSE 22 + +# Default command +CMD ["/usr/sbin/sshd", "-D"]