Slide 18
Slide 18 text
FROM centos:7
RUN true \
&& echo ‘proxy=http://proxygate.sample:8080' >> /etc/yum.conf \
&& yum -y install epel-release \
&& yum -y install ansible openssh-clients openssh-server \
&& yum -y install libuuid.i686 libuuid.x86_64 libgcc.i686 libgcc.x86_64 \
&& yum -y clean all \
&& sed -i '$d' /etc/yum.conf \
&& true
RUN true \
&& ssh-keygen -A -N '' \
&& sed -i 's/#PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/
sshd_config \
&& true
RUN true \
&& groupadd -g 1000 sampleuser \
&& useradd -N -g sampleuser -u 1000 sampleuser \
&& echo ‘sampleuser:$6$<ϋογϡ>’ | chpasswd --encrypted \
&& echo ‘root:$6$<ϋογϡ>' | chpasswd --encrypted \
&& true
CMD [“/sbin/init"]