Skip to content

Instantly share code, notes, and snippets.

@michabbb
Created April 23, 2020 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michabbb/ca82d97723874dfc41fe9cac3e9499a6 to your computer and use it in GitHub Desktop.
Save michabbb/ca82d97723874dfc41fe9cac3e9499a6 to your computer and use it in GitHub Desktop.
Dockerfile for pt-table-sync
FROM debian:9
RUN apt-get update && apt-get install -y \
libdbd-mysql-perl \
libdbi-perl \
libio-socket-ssl-perl \
libterm-readkey-perl \
perl \
wget \
&& rm -rf /usr/share/doc/* && \
rm -rf /usr/share/info/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
WORKDIR /tmp
RUN wget https://www.percona.com/downloads/percona-toolkit/3.0.4/binary/debian/stretch/x86_64/percona-toolkit_3.0.4-1.stretch_amd64.deb && \
dpkg -i percona-toolkit_3.0.4-1.stretch_amd64.deb && \
rm -f percona-toolkit_3.0.4-1.stretch_amd64.deb
RUN wget https://www.percona.com/downloads/percona-monitoring-plugins/1.1.7/binary/debian/jessie/x86_64/percona-monitoring-plugins-1.1.7-r1d6d0d4-jessie-x86_64-bundle.tar && \
tar xvf percona-monitoring-plugins-1.1.7-r1d6d0d4-jessie-x86_64-bundle.tar && \
dpkg -i percona-nagios-plugins_1.1.7-1.jessie_all.deb && \
rm -f *.deb \
rm -f *.tar
RUN apt-get install -y mysql-client
WORKDIR /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment