Created
April 11, 2017 10:37
-
-
Save juniorh/335b963216b5b43ae07bb2e2a5e862af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debianbase:7.11 | |
MAINTAINER Rizal Muhammad Nur | |
# bypass interactive when install percona | |
RUN echo "percona-xtradb-cluster-server-5.5 percona-xtradb-cluster-server/root_password password unused" | debconf-set-selections | |
RUN echo "percona-xtradb-cluster-server-5.5 percona-xtradb-cluster-server/root_password_again password unused"| debconf-set-selections | |
# install percona | |
RUN apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A | |
RUN echo "deb http://repo.percona.com/apt wheezy main" | tee -a /etc/apt/sources.list.d/percona.list | |
RUN echo "deb-src http://repo.percona.com/apt wheezy main" | tee -a /etc/apt/sources.list.d/percona.list | |
RUN apt-get update | |
RUN apt-get install locales | |
RUN locale-gen en_US.UTF-8 | |
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 | |
RUN apt-get install -y percona-xtradb-cluster-galera-2 percona-xtradb-cluster-galera-2.x | |
RUN apt-get install -y percona-xtradb-cluster-55 percona-xtradb-cluster-server-5.5 | |
RUN apt-get install -y percona-server-common-5.5 libperconaserverclient18 libperconaserverclient18-dev | |
RUN apt-get install -y python-mysqldb libmysqlclient18.1 | |
RUN apt-get autoclean | |
RUN service mysql stop | |
RUN rm -rf /var/lib/apt/lists/* | |
RUN rm -rf /var/lib/mysql/* | |
RUN mv /etc/mysql/my.cnf /var/lib/mysql/my.cnf.old |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment