-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 880 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 880 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
28
FROM ubuntu:xenial
MAINTAINER Emre <e@emre.pm>
ENV DEBIAN_FRONTEND noninteractive
ENV PERCONA_RELEASE_VERSION 0.1-4
ENV PERCONA_VERSION 57
ENV SERVER_ID 1
RUN \
apt-get update && \
apt-get install -y --no-install-recommends apt-transport-https ca-certificates pwgen vim wget xinetd curl jq && \
wget https://repo.percona.com/apt/percona-release_${PERCONA_RELEASE_VERSION}.xenial_all.deb && \
dpkg -i percona-release_${PERCONA_RELEASE_VERSION}.xenial_all.deb && \
rm -rf percona-release_${PERCONA_RELEASE_VERSION}.xenial_all.deb && \
apt-get update && \
apt-get install -y percona-xtradb-cluster-${PERCONA_VERSION} && \
rm -rf /var/lib/apt/lists/*
ADD entrypoint.sh /
ADD clustermon /usr/bin
RUN chmod a+x /entrypoint.sh /usr/bin/clustermon
VOLUME ["/var/lib/mysql", "/var/log/mysql"]
EXPOSE 3306 4567 4568 9200
ENTRYPOINT ["/entrypoint.sh"]