Skip to content

Commit

Permalink
mount debugfs before starting
Browse files Browse the repository at this point in the history
  • Loading branch information
itaysk committed Dec 26, 2019
1 parent 6121f73 commit 3aa5c75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# must run privileged and with linux headers and debugfs mounted
# docker run --name tracee --rm --privileged -v /lib/modules/:/lib/modules/ -v /usr/src:/usr/src -v /sys/kernel/debug:/sys/kernel/debug tracee:t2
# must run privileged and with linux headers
# docker run --name tracee --rm --privileged -v /lib/modules/:/lib/modules/ -v /usr/src:/usr/src tracee
FROM ubuntu:bionic

RUN echo "deb [trusted=yes] http://repo.iovisor.org/apt/bionic bionic main" > /etc/apt/sources.list.d/iovisor.list && \
Expand All @@ -8,4 +8,4 @@ RUN echo "deb [trusted=yes] http://repo.iovisor.org/apt/bionic bionic main" > /e

WORKDIR /tracee
COPY . /tracee
ENTRYPOINT ["python", "start.py"]
ENTRYPOINT ["./entrypoint.sh", "python", "start.py"]
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -e
mount -t debugfs debugfs /sys/kernel/debug/
exec "$@"

0 comments on commit 3aa5c75

Please sign in to comment.