Skip to content

Commit

Permalink
Include Py3.11 and Py3.12 images
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Nov 20, 2023
1 parent 912ddbb commit 46c1538
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions python/3.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM indigodatacloud/ci-images:base-u22
MAINTAINER Pablo Orviz <[email protected]>

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"]
32 changes: 32 additions & 0 deletions python/3.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM indigodatacloud/ci-images:base-u22
MAINTAINER Pablo Orviz <[email protected]>

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"]

0 comments on commit 46c1538

Please sign in to comment.