Skip to content

Commit db3a1b6

Browse files
author
thuongtruong109
committed
fix(configs): migrate docker hand setup to using builded image
1 parent cb8b1cd commit db3a1b6

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

configs/cluster/Dockerfile.bench

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
FROM ubuntu:22.04 AS builder
2-
3-
RUN apt-get update && \
4-
apt-get install -y --no-install-recommends \
5-
build-essential autoconf automake libtool \
6-
libpcre3-dev libevent-dev pkg-config zlib1g-dev libssl-dev wget unzip && \
7-
rm -rf /var/lib/apt/lists/*
8-
9-
WORKDIR /tmp
10-
ENV MEMTIER_VERSION=2.2.0
11-
12-
RUN wget -q https://github.com/RedisLabs/memtier_benchmark/archive/refs/tags/${MEMTIER_VERSION}.tar.gz -O memtier.tar.gz && \
13-
tar -xzf memtier.tar.gz && \
14-
cd memtier_benchmark-${MEMTIER_VERSION} && \
15-
autoreconf -ivf && \
16-
./configure --prefix=/usr/local && \
17-
make && \
18-
make install
19-
20-
FROM ubuntu:22.04
1+
FROM redislabs/memtier_benchmark:2.2.0
212

223
RUN apt-get update && \
234
apt-get install -y --no-install-recommends redis-tools && \
@@ -32,8 +13,6 @@ WORKDIR /app
3213
COPY tests/clt-bench.sh /app/tests/clt-bench.sh
3314
RUN chmod +x /app/tests/clt-bench.sh && chown -R bench:bench /app
3415

35-
COPY --from=builder /usr/local/bin/memtier_benchmark /usr/local/bin/memtier_benchmark
36-
3716
USER bench
3817

3918
ENTRYPOINT ["/app/tests/clt-bench.sh"]

0 commit comments

Comments
 (0)