Remove jenkins-ubuntu image
Add fedora-cpp image
This commit is contained in:
parent
308d566942
commit
15cd2ab5b1
4
fedora-cpp.Dockerfile
Normal file
4
fedora-cpp.Dockerfile
Normal 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
|
||||||
@ -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"]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAQPGsTqCq3TyambvquSpO3QYNyEbkT8U0mGyetZtVmF jenkins
|
|
||||||
Loading…
x
Reference in New Issue
Block a user