Sha256: 350732f35f21c40e66357d6ce951ce0d773858b770f0f9a6514e23639725ed1f

Contents?: true

Size: 795 Bytes

Versions: 12

Compression:

Stored size: 795 Bytes

Contents

FROM centos:6

RUN rm -f /var/run/yum.pid
RUN yum clean all
RUN yum install -y yum install openssh openssh-server openssh-clients sudo passwd
RUN useradd tester
RUN echo "tester" | passwd --stdin tester
RUN mkdir -p /home/tester/.ssh; chown tester /home/tester/.ssh; chmod 700 /home/tester/.ssh
ADD authorized_keys /home/tester/.ssh/
RUN chown tester /home/tester/.ssh/authorized_keys; chmod 600 /home/tester/.ssh/authorized_keys
RUN echo "tester    ALL=(ALL)       NOPASSWD:ALL" >> /etc/sudoers.d/tester
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config
RUN sed -ri 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
RUN /etc/init.d/sshd start
RUN /etc/init.d/sshd stop

CMD /usr/sbin/sshd -D

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rundock-1.2.1 spec/integration/platforms/centos6/Dockerfile
rundock-1.2.0 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.7 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.6 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.5 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.4 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.3 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.2 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.1 spec/integration/platforms/centos6/Dockerfile
rundock-1.1.0 spec/integration/platforms/centos6/Dockerfile
rundock-1.0.8 spec/integration/platforms/centos6/Dockerfile
rundock-1.0.7 spec/integration/platforms/centos6/Dockerfile