-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 778 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 778 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 mysql:5.6
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install \
libdbi-perl \
libmysqlclient18 \
libdbd-mysql-perl \
openssh-client \
wget
WORKDIR /tmp
# a collection script based largely on the script shipping with Box Anemometer
COPY conf/anemometer_collect.sh anemometer_collect.sh
# my.cnf for the anemometer mysql instance
COPY conf/anem_mysql.cnf anem_mysql.cnf
# pull down the pt-query-digest tool
RUN wget -P /usr/local/bin --no-check-certificate percona.com/get/pt-query-digest \
&& chmod +x /usr/local/bin/pt-query-digest
# running the container should just call the script
ENTRYPOINT ["./anemometer_collect.sh"]
# by default show the help, callers should pass params in their run command
CMD ["--help"]