From d1e7c3bb1dc5a06eaa3237b4379c797d4c6b6af8 Mon Sep 17 00:00:00 2001 From: LHoG <1476261+lhog@users.noreply.github.com> Date: Wed, 13 Jul 2022 00:29:31 +0400 Subject: [PATCH] Drafted Dockerfile to perform tests. See https://github.com/daanx/mimalloc-bench/issues/117 --- docker/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..1085750 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,36 @@ +FROM ubuntu:20.04 + +# suppress questions from apt +ENV DEBIAN_FRONTEND=noninteractive + +# suppress questions from apt even more +RUN echo '\ +APT::Get::Assume-Yes "true";\n\ +APT::Get::force-yes "true";' > /etc/apt/apt.conf.d/90forceyes + +# workaround /build-bench-env.sh deficiencies +RUN apt update && apt install git make curl wget gpg software-properties-common lsb-release gawk bsdmainutils && apt clean all + +# install latest cmake +RUN \ +wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null && \ +apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" && \ +apt update && \ +apt install kitware-archive-keyring && \ +rm /etc/apt/trusted.gpg.d/kitware.gpg && \ +apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF7F09730B3F0A4 && \ +apt update && \ +apt install cmake + +RUN git clone https://github.com/daanx/mimalloc-bench + +WORKDIR "/mimalloc-bench" + +RUN \ +git config --global advice.detachedHead false &&\ +git config --global init.defaultBranch main + +RUN ./build-bench-env.sh all no-lean no-gd no-sg no-ff no-fg no-lt no-lf no-hd + +WORKDIR "/mimalloc-bench/out/bench" +CMD ../../bench.sh alla allt || /bin/bash \ No newline at end of file