github.com/pingcap/chaos@v0.0.0-20190710112158-c86faf4b3719/docker/node/Dockerfile (about)

     1  # Based on the deprecated `https://github.com/tutumcloud/tutum-debian`
     2  FROM debian:stretch
     3  
     4  # Install packages
     5  RUN apt-get update && \
     6      apt-get -y install \
     7          dos2unix \
     8          openssh-server \
     9          pwgen \
    10          && \
    11  mkdir -p /var/run/sshd && \
    12  sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && \
    13  sed -i "s/PermitRootLogin without-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
    14  
    15  ENV AUTHORIZED_KEYS **None**
    16  
    17  ADD run.sh /run.sh
    18  RUN dos2unix /run.sh \
    19      && chmod +x /*.sh
    20  
    21  RUN apt-get update
    22  RUN apt install -y apt-transport-https
    23  RUN apt install -y software-properties-common
    24  
    25  RUN rm /etc/apt/apt.conf.d/docker-clean && \
    26      apt-get update && \
    27      apt-get install -y \
    28          sudo net-tools wget \
    29          curl vim man faketime unzip less \
    30          iptables iputils-ping logrotate && \
    31      apt-get remove -y --purge --auto-remove systemd
    32  
    33  EXPOSE 22
    34  CMD ["/run.sh"]