From centos:centos8

RUN  sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN  sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum update -y

RUN yum install python2 net-tools mysql wget nc lsof which java diffutils -y \
    && yum install fio perf -y \
    && yum install openssh-server openssh-clients -y \
    && yum clean all \
    && ln -s /usr/bin/python2 /usr/bin/python

# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

# Run your program under Tini
CMD ["/bin/bash"]
