More iteration of the jenkins image
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Erki 2022-01-23 16:53:32 +02:00
parent 377dfe073e
commit 55214df674
2 changed files with 14 additions and 1 deletions

View File

@ -2,4 +2,16 @@ FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && apt-get install -y --no-install-recommends ssh git build-essential cmake ninja-build python3 python3-pip default-jre 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

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