FROM centos:latest

MAINTAINER Jack Yu <jackysp@gmail.com>

RUN yum install -y ant git

RUN git clone https://github.com/jackysp/benchmarksql50-mysql.git && \
cd benchmarksql50-mysql && ant

WORKDIR /root
ADD run-test.sh /root/run-test.sh
ADD test.sql /root/test.sql
ADD bin/tpcc /root/tpcc

CMD ["/root/tpcc"]
