-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the benchmark setup process faster and the benchmark itself more…
… stable
- Loading branch information
1 parent
a1c9c34
commit f2b3ab7
Showing
3 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
FROM debian:bullseye | ||
RUN apt-get update -qq && apt-get install -qq -yy make curl gcc g++ patch bzip2 git unzip | ||
RUN adduser --disabled-password --gecos '' --shell /bin/bash opam | ||
ENV OPAMREPOSHA 26770281fa1ea8b13aab979c1dfbd326e9ab512c | ||
RUN git clone https://github.com/ocaml/opam-repository --depth 1 /rep/opam-repository | ||
RUN git -C /rep/opam-repository fetch origin $OPAMREPOSHA | ||
RUN git -C /rep/opam-repository checkout $OPAMREPOSHA | ||
USER opam | ||
COPY --chown=opam:opam . /src | ||
WORKDIR /src | ||
RUN make cold | ||
USER root | ||
RUN install ./opam /usr/local/bin/ | ||
USER opam | ||
ENV OPAMREPOSHA 26770281fa1ea8b13aab979c1dfbd326e9ab512c | ||
RUN git clone https://github.com/ocaml/opam-repository --depth 1 | ||
RUN git -C opam-repository fetch origin $OPAMREPOSHA | ||
RUN git -C opam-repository checkout $OPAMREPOSHA | ||
RUN opam init -n --disable-sandboxing ./opam-repository | ||
RUN find "$(pwd)/opam-repository" -name opam -type f > /home/opam/all-opam-files | ||
RUN opam init --bare -n --disable-sandboxing /rep/opam-repository | ||
RUN opam switch create --fake default 4.14.0 | ||
RUN find /rep/opam-repository -name opam -type f > /home/opam/all-opam-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters