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

Include Py3.11 images and Ubuntu 22.04 #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
39 changes: 39 additions & 0 deletions base/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM ubuntu:22.04
MAINTAINER Pablo Orviz <[email protected]>

USER root

RUN apt-get update \
&& apt-get install --no-install-recommends -y openssh-server \
sudo \
openjdk-8-jdk \
&& rm -rf /var/lib/apt/lists/*

# Jenkins sshd
RUN useradd -m -u 1001 -d /home/jenkins -s /bin/sh jenkins
RUN mkdir /home/jenkins/.ssh &&\
chmod 0700 /home/jenkins/.ssh &&\
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC031xiODGimXMUdXNlFcGR5/MqUfRN65Gkwt29gszi9GFraZd300Gbxfknru4VsDpk0ULTg1z0A+pxpWanFTCnYW9cR1LlC7Cpw3L+p9Lu/TsjBJC0OsxHEr6p5frb85ChHJv381Vr1OIWmnDGrdSbbNLM3+UqtVARDDExl4+dQIJzzPFZZMpB2wZqWcR5uftlrat/4Zrew+4fQHNMAbGfUaa5TD94cXFmuFro3lzpbMjfKB0FlIBYtkYXkYqoRI8ujzN02icE4c4CocdBEFt2FbaT/9EtFeAltCxprZt5566f9uJIpJ1FR8DOOdrxnQTkw+r7cLEgh3kBUnIet5JX jenkins@jenkins-indigo" > /home/jenkins/.ssh/authorized_keys &&\
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4t0v8CTpyV4FzP2xKaPTQ/Y2yjKbLqelWhJ5ZNy2bw/N9zpQMl/1xKGTz9j8TtLyEfaEcODxjbXCsc7XUwxB5SRp1yAiw2ddeFvACj9/Oyr2SYpHSMz9W+p0Pa0Dzi4+pd+w7qc9lXm1Ei8fLrZf17uyFJyQliobHh3vbWcTauJLs68ym3niY52wTjXbWxXGmERGU1F+Baue/LFta2RIP5Z+m7zWzqbFpECgYMbPCKDq8QRA6649B6f0qLmJOF1yALlKr8yfzuo48eLp8hyYE4gV8CQxr4L/aQUEeirEywGipiKsOIgsJCu88wDMsQHlP32ERLQfsjpLDTKod6Q6z jenkins@jenkins-egi" >> /home/jenkins/.ssh/authorized_keys &&\
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpYfB8piEBD1BUlo9+zFVQKKCGrFtpaNrhL8JMVdHwIK8a7SUAQQnQD9zO7VwMgjdrXngkWV8pGb6JD8ChODPmScKrw4Mk5ULk5cJ6yT91/rh09OcO6HEvZkl/WJIaVTGBIBFGRrvDvxxphn1Yc/OTPBUbDrxeospxNhc3DzfifAIKjn2tb6lVYTh5mU9aL4Hyh7a/HMv4WewSMThTiOCXGJIJBOq0qdfurdoacQRuGoUykW74XZ8SzZkHSssAH6wc5pz8TwxoNOYDGX+arO3gI3+MbE9oPiOEwGZ7WAxX0L1xwO164DBxuU1HkF4frbD5c5Oy4dBHC082Hl2m6C6Z jenkins@infn-cloud" >> /home/jenkins/.ssh/authorized_keys &&\
chown -R jenkins:jenkins /home/jenkins/.ssh
RUN echo "jenkins ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers

# sshd
RUN sed -i /etc/ssh/sshd_config \
-e 's/#PermitRootLogin.*/PermitRootLogin no/' \
-e 's/#RSAAuthentication.*/RSAAuthentication yes/' \
-e 's/#PasswordAuthentication.*/PasswordAuthentication no/' \
-e 's/#SyslogFacility.*/SyslogFacility AUTH/' \
-e 's/#LogLevel.*/LogLevel INFO/'
RUN mkdir -p /run/sshd

# locales
RUN apt-get update \
&& apt-get install --no-install-recommends -y locales \
&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8

EXPOSE 22

CMD ["/usr/sbin/sshd", "-D"]
33 changes: 33 additions & 0 deletions python/3.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM indigodatacloud/ci-images:base-u2204
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 \
python3-netifaces \
&& 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"]