Skip to content

Instantly share code, notes, and snippets.

@masawada
Last active November 9, 2018 17:44
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 masawada/5e849c311e2c72c324052281c7814ce2 to your computer and use it in GitHub Desktop.
Save masawada/5e849c311e2c72c324052281c7814ce2 to your computer and use it in GitHub Desktop.
Build Query Playback on Docker(CentOS 7) https://github.com/Percona-Lab/query-playback
yum -y localinstall http://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
# enable the mysql version which you want to test
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql56-community
yum -y groupinstall "Development Tools"
yum -y install tbb tbb-devel cmake boost boost-devel gcc-c++ openssl-devel wget mysql-devel
wget https://github.com/Percona-Lab/query-playback/archive/master.zip
unzip master.zip
cd query-playback-master/
mkdir build_dir
cd build_dir
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
cpack -G DEB ..
cp percona-playback-0.7.0-Linux.deb /share/
version: '3'
services:
host:
image: centos:centos7
volumes:
- .:/share
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment