This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# little dockerfile to debug CI issues
FROM ocaml/opam
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
RUN mkdir -p /home/opam/dune/_boot /home/opam/dune/_build && chown opam:opam /home/opam/dune/_boot /home/opam/dune/_build
COPY Makefile Makefile
COPY .ocamlformat .ocamlformat
RUN --mount=type=cache,target=/var/cache/apt sudo apt-get update && sudo apt-get install -y pkg-config nodejs strace file linux-perf-5.10
# XXX not really correct as we should copy dune's source and pin it first. But
# this docker file is mostly useful for quickly figuring out CI issues, so we
# aren't too concerned
RUN opam update && make dev-depext && make dev-deps && rm .ocamlformat Makefile

View file

@ -0,0 +1,21 @@
volumes:
_build:
_boot:
services:
dune:
image: dune
user: opam
tty: true
privileged: true
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- seccomp:unconfined
stdin_open: true
environment:
HISTFILE: /home/opam/dune/.git/.bash_history
volumes:
- ../:/home/opam/dune
- _build:/home/opam/dune/_build/
- _boot:/home/opam/dune/_boot/