-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
FROM alpine:latest | ||
|
||
ADD http://percona.com/get/percona-toolkit.tar.gz / | ||
ARG BRANCH=3.x | ||
|
||
RUN \ | ||
apk update && \ | ||
apk add perl perl-dbd-mysql && \ | ||
apk add --virtual=build make && \ | ||
tar zxf /percona-toolkit.tar.gz && \ | ||
apk add --virtual=build git go make && \ | ||
git clone https://github.com/percona/percona-toolkit.git && \ | ||
( \ | ||
cd percona-toolkit-* && \ | ||
cd percona-toolkit && \ | ||
git checkout ${BRANCH} && \ | ||
perl Makefile.PL && \ | ||
make && \ | ||
make install \ | ||
) && \ | ||
rm -rf percona-toolkit* && \ | ||
rm -rf percona-toolkit && \ | ||
apk del --purge build | ||
|
||
ENTRYPOINT ["pt-query-digest"] |