forked from akopytov/sysbench
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
bcd950b
commit 2be4b77
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |