dockerfiles
dockerfiles copied to clipboard
补充文件Dockfile
#---------------------
I am he-aook
#Project dockerfiles:
http://githuba.com/Syatemood/dockerfile
FROM docker.io/library/centos:7
ENV MYSQL_VERSION="5.6.35"
COPY run.sh / COPY init-db.sh /
RUN yum update -y &&
yum install -y perl-Data-Dumper.x86_64 perl-DBI.x86_64 libaio-devel numactl-libs net-tools perl perl perl-Data-Dumper-Names &&
yum clean all &&
for pkg in common libs devel client server;
do rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-$pkg-$MYSQL_VERSION-2.el7.x86_64.rpm; done &&
chmod 755 /run.sh /init-db.sh && rm -rf /var/lib/mysql
ENTRYPOINT ["/run.sh"]