Skip to content

Commit

Permalink
install sudo in the centos7 dockerfile to match the others
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnewton committed Aug 1, 2019
1 parent 89f6580 commit 7717256
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/docker/build-centos7/Dockerfile.jenkins
Expand Up @@ -4,9 +4,14 @@ FROM ${from}
#
# This is necessary for the jenkins server to talk to the docker instance
#
RUN yum install -y openssh-server java-1.8.0-openjdk-headless createrepo
RUN yum install -y java-1.8.0-openjdk-headless \
createrepo \
openssh-server \
sudo

RUN adduser jenkins
RUN printf jenkins1 | passwd --stdin jenkins
RUN echo "jenkins ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
RUN mkdir /var/run/sshd

RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
Expand Down

0 comments on commit 7717256

Please sign in to comment.