1
0
Fork 0
mirror of https://github.com/imjasonh/snoop synced 2026-07-19 07:04:01 +00:00

initial commit

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2026-01-14 09:55:28 -05:00
commit f793a98161
21 changed files with 2311 additions and 0 deletions

View file

@ -0,0 +1,41 @@
version: '3.8'
services:
# Test application container
app:
image: alpine:latest
command: >
sh -c "
echo 'Test app starting...';
while true; do
cat /etc/passwd > /dev/null;
ls /usr/bin > /dev/null;
sleep 5;
done
"
networks:
- snoop-net
# Snoop sidecar
snoop:
build:
context: ..
dockerfile: deploy/Dockerfile
privileged: true
pid: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/kernel/debug:/sys/kernel/debug:ro
- snoop-data:/data
environment:
- TARGET_CGROUP=${TARGET_CGROUP:-}
depends_on:
- app
networks:
- snoop-net
volumes:
snoop-data:
networks:
snoop-net: