Skip to content

Commit dc90a8d

Browse files
RoeyPratushachar
authored andcommitted
added dockerfile (#33)
Added Dockerfile support for building & running memtier benchmark in a container.
1 parent 1301708 commit dc90a8d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:16.04 as builder
2+
RUN apt-get update
3+
RUN apt-get install -yy build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev git libboost-all-dev cmake flex
4+
RUN git clone https://github.com/RedisLabs/memtier_benchmark.git
5+
WORKDIR /memtier_benchmark
6+
RUN autoreconf -ivf && ./configure && make && make install
7+
8+
FROM ubuntu:16.04
9+
LABEL Description="memtier_benchmark"
10+
COPY --from=builder /usr/local/bin/memtier_benchmark /usr/local/bin/memtier_benchmark
11+
RUN apt-get update
12+
RUN apt-get install -yy libevent-dev
13+
ENTRYPOINT ["memtier_benchmark"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ $ make
8484
$ make install
8585
```
8686

87+
## Using Docker
88+
89+
```
90+
$ docker build -t memtier_benchmark .
91+
$ docker run --rm memtier_benchmark --help
92+
```
93+
8794
## Using memtier_benchmark
8895

8996
See the included manpage or run::

0 commit comments

Comments
 (0)