-
Notifications
You must be signed in to change notification settings - Fork 40
/
Dockerfile
34 lines (28 loc) · 936 Bytes
/
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
34
FROM gradle:8-jdk17-focal as builder
COPY . /tmp/benchmark-build
WORKDIR /tmp/benchmark-build
RUN --mount=type=cache,target=/root/.gradle \
--mount=type=cache,target=/home/gradle/.gradle \
--mount=type=cache,target=/tmp/benchmark-build/.gradle \
./gradlew --no-daemon -i clean deployTar
FROM azul/zulu-openjdk:17-latest as runner
RUN apt-get update &&\
apt-get install -y \
tar \
gzip \
iproute2 \
bind9-utils \
bind9-host \
jq \
lsb-release \
python3-pip \
numactl \
hwloc &&\
pip3 install --upgrade --user hdr-plot
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin
COPY --from=builder /tmp/benchmark-build/build/distributions/benchmarks.tar /root/benchmarks.tar
ENV BENCHMARKS_PATH /opt/aeron-benchmarks
RUN mkdir -p ${BENCHMARKS_PATH} &&\
tar -C ${BENCHMARKS_PATH} -xf /root/benchmarks.tar &&\
rm -f /root/benchmarks.tar
WORKDIR ${BENCHMARKS_PATH}/scripts