• Mysql5.6.29 dockerfile


    FROM docker.io/centos:7
    RUN yum -y install gcc gcc-c++ make autoconf make cmake wget
    RUN groupadd mysql; useradd -r -M -u 3306 -s /sbin/nologin -g mysql mysql
    RUN mkdir /usr/local/mysql; mkdir /data/mysql -pv
    RUN yum install gcc gcc-c++ ncurses-devel bison bison-devel -y
    RUN wget -c http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.29.tar.gz
    RUN tar xf mysql-5.6.29.tar.gz -C /usr/local/src/
    WORKDIR /usr/local/src/mysql-5.6.29
    RUN cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR=/etc -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DEXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DWITH-MYSQLD-LDFLAGS=-all-static -DWITH-CLIENT-LD-FLAGS=-all-static -DWITH_DEBUG=0 && gmake && gmake install
    RUN chown -R root:mysql /usr/local/mysql/ && chown -R mysql:mysql /data/mysql
    RUN chmod 755 /usr/local/src/mysql-5.6.29/scripts/mysql_install_db.sh
    RUN /usr/local/src/mysql-5.6.29/scripts/mysql_install_db.sh --basedir=/usr/local/mysql --datadir=/data/mysql --no-defaults --user=mysql
    RUN cp /usr/local/src/mysql-5.6.29/support-files/my-default.cnf  /etc/my.cnf
    RUN cp /usr/local/src/mysql-5.6.29/support-files/mysql.server  /etc/init.d/mysqld
    RUN chmod 775 /etc/init.d/mysqld && /etc/init.d/mysqld start
    RUN echo -e '#!/bin/bash\nexport PATH=$PATH:/usr/local/mysql/bin' >/etc/profile.d/mysql.sh
    RUN source /etc/profile
    EXPOSE 3306
  • 相关阅读:
    Java 多态
    java final 关键字
    Java @Override 注解
    java 代理 agency
    java 构造器(constructor)
    打赏功能的实现
    博客园设置类似sublime高亮代码
    Ant教程
    github(其他类似github)下载到本地配置
    OSI七层与TCP/IP五层网络架构详解
  • 原文地址:https://www.cnblogs.com/shenyuanhaojie/p/15628391.html
Copyright © 2020-2023  润新知