forked from Percona-Lab/proxysql-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (22 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM centos:7
MAINTAINER Percona Development <[email protected]>
RUN rpmkeys --import https://www.percona.com/downloads/RPM-GPG-KEY-percona
RUN yum install -y sysvinit-tools \
&& yum install -y which \
&& yum install -y sudo \
&& yum clean all
RUN yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm && yum clean all
RUN yum install -y proxysql-1.3.9 && yum clean all
RUN yum install -y Percona-Server-client-57 && yum clean all
ADD proxysql.cnf /etc/proxysql.cnf
COPY proxysql-entry.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
COPY jq /usr/bin/jq
RUN chmod a+x /usr/bin/jq
COPY add_cluster_nodes.sh /usr/bin/add_cluster_nodes.sh
RUN chmod a+x /usr/bin/add_cluster_nodes.sh
VOLUME /var/lib/proxysql
EXPOSE 3306 6032
ONBUILD RUN yum update -y
CMD [""]