Skip to content

补充文件Dockfile #1

Description

@he-aook

#---------------------

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"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions