Sha256: b2f80bc30ec059498a817d35985957534904032c713ad57fcd8494d1fef74300

Contents?: true

Size: 741 Bytes

Versions: 3

Compression:

Stored size: 741 Bytes

Contents

FROM centos:6

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)       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

3 entries across 3 versions & 1 rubygems

Version Path
rundock-0.5.3 spec/integration/platforms/centos6/Dockerfile
rundock-0.5.2 spec/integration/platforms/centos6/Dockerfile
rundock-0.5.0 spec/integration/platforms/centos6/Dockerfile