Remove jenkins-ubuntu image

Add fedora-cpp image
This commit is contained in:
Erki 2024-02-04 21:20:57 +02:00
parent 308d566942
commit 15cd2ab5b1
3 changed files with 4 additions and 18 deletions

4
fedora-cpp.Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM fedora:39
RUN dnf groupinstall "Development Tools" "Development Libraries" -y
RUN dnf install cmake ninja-build python3 python3-pip -y

View File

@ -1,17 +0,0 @@
FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && apt-get install -y --no-install-recommends sudo openssh-server git build-essential cmake ninja-build python3 python3-pip default-jre
RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd
RUN mkdir -p /var/run/sshd
RUN adduser --quiet jenkins
RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
COPY ./jenkins-ubuntu/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
RUN chown -R jenkins:jenkins /home/jenkins/.ssh/
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]

View File

@ -1 +0,0 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAQPGsTqCq3TyambvquSpO3QYNyEbkT8U0mGyetZtVmF jenkins