Skip to content

Commit

Permalink
chore(docker): add perf to image (#7266)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Mar 10, 2023
1 parent 4c69627 commit 82df8da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ 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 install -y pkg-config nodejs strace file && make dev-depext
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-deps && rm .ocamlformat Makefile
RUN opam update && make dev-depext && make dev-deps && rm .ocamlformat Makefile
6 changes: 6 additions & 0 deletions docker/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ services:
image: dune
user: opam
tty: true
privileged: true
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- seccomp:unconfined
stdin_open: true
volumes:
- ../:/home/opam/dune
Expand Down

0 comments on commit 82df8da

Please sign in to comment.