forked from Percona-Lab/proxysql-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 775 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 775 Bytes
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
FROM centos:7
MAINTAINER Percona Development <info@percona.com>
RUN yum install -y https://github.com/sysown/proxysql/releases/download/v1.3.1/proxysql-1.3.1-1-centos7.x86_64.rpm
RUN rpmkeys --import https://www.percona.com/downloads/RPM-GPG-KEY-percona
RUN yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
RUN yum install -y Percona-Server-client-57
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 [""]