From 2be4b772b00b0676e464433274ba227455a62683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Bu=C3=9Fmann?= Date: Mon, 10 Feb 2020 03:00:08 +0100 Subject: [PATCH] Added Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..8bfcccf0d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu:xenial + +RUN apt-get update + +RUN apt-get -y install make automake libtool pkg-config libaio-dev git + +# For MySQL support +RUN apt-get -y install libmysqlclient-dev libssl-dev + +# For PostgreSQL support +RUN apt-get -y install libpq-dev + +RUN git clone https://github.com/akopytov/sysbench.git sysbench + +WORKDIR sysbench +RUN ./autogen.sh +RUN ./configure --with-mysql --with-pgsql +RUN make -j +RUN make install + +WORKDIR /root +RUN rm -rf sysbench + +ENTRYPOINT sysbench