forked from romange/container-foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbenchmark-dev.Dockerfile
33 lines (24 loc) · 1.17 KB
/
benchmark-dev.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use the base image
FROM ghcr.io/romange/ubuntu-dev:20 as base
ARG TARGETPLATFORM
# Install Node.js
RUN apt-get update && \
apt-get install -y nodejs npm && \
npm install -g npm
# Install Docker
RUN apt-get update && \
apt-get install -y apt-transport-https ca-certificates curl software-properties-common && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"; \
elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then \
add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"; \
fi
# Install Docker
RUN apt-get update && apt-get install -y docker-ce
# Install dependencies (if needed)
RUN apt-get update && apt-get install -y sudo build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev git
# Clone memtier_benchmark repository
RUN git clone https://github.com/RedisLabs/memtier_benchmark.git
# Build memtier_benchmark
RUN cd memtier_benchmark && autoreconf -ivf && ./configure && make && sudo make install