Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drafted Dockerfile to perform tests. #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM ubuntu:20.04
jvoisin marked this conversation as resolved.
Show resolved Hide resolved

# 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
jvoisin marked this conversation as resolved.
Show resolved Hide resolved

# 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git clone --depth=1 https://github.com/daanx/mimalloc-bench is a bit better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, though the repo size is really minuscule. Can do if you prefer so.


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
jvoisin marked this conversation as resolved.
Show resolved Hide resolved

WORKDIR "/mimalloc-bench/out/bench"
CMD ../../bench.sh alla allt || /bin/bash
jvoisin marked this conversation as resolved.
Show resolved Hide resolved