-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 1.64 KB
/
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
35
36
37
38
39
40
41
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="Martin Pollard <[email protected]>"
ENV PACKAGES autoconf build-essential ca-certificates cmake curl g++ gcc git \
zlib1g libboost-all-dev libbz2-dev libcurl4 libcurl4-gnutls-dev libffi-dev \
libfmt-dev libghc-iconv-dev libiperf-dev liblzma-dev libmysqlclient-dev libnuma-dev lib.so.6 libssl-dev \
libtbb-dev libusb-1.0-0-dev libusb-dev libxml2-dev make numactl python3-dev python3-pip \
python3-yaml python3-yapsy python-is-python3 openjdk-8-jre-headless \
samtools tar time unzip vim wget zlib1g-dev parallel libarchive-tools \
libgff-dev pkg-config libjemalloc-dev libcereal-dev libhts-dev
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${PACKAGES} && \
apt-get clean
#create benchmarking directory
RUN mkdir /benchmarking
#copy files required for benchmarking and install requirements.txt
COPY ./defaults.yml /benchmarking/
COPY ./setup/ /benchmarking/setup
COPY ./benchmark_suite /benchmarking/benchmark_suite
COPY ./runbenchmarks.py /benchmarking/
RUN pip3 install --upgrade pip setuptools
RUN pip3 install https://github.com/mp15/py-cpuinfo/archive/refs/heads/prefer_bios_cpuid.zip
RUN pip3 install -r /benchmarking/setup/requirements.txt
#fork of codecarbon
RUN git clone --single-branch -b perf_module https://github.com/mp15/codecarbon.git /benchmarking/codecarbon
WORKDIR /benchmarking/codecarbon
RUN python3 /benchmarking/codecarbon/setup.py install
#create data directory
RUN mkdir /data
ENV PYTHONPATH /benchmarking
WORKDIR /benchmarking
ENTRYPOINT ["python3","/benchmarking/runbenchmarks.py"]