More iteration of the jenkins image
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
377dfe073e
commit
55214df674
@ -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"]
|
||||||
|
|||||||
1
jenkins-ubuntu/.ssh/authorized_keys
Normal file
1
jenkins-ubuntu/.ssh/authorized_keys
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAQPGsTqCq3TyambvquSpO3QYNyEbkT8U0mGyetZtVmF jenkins
|
||||||
Loading…
x
Reference in New Issue
Block a user