From 3f89699d189067651793c0a1c69f826f2b7418c4 Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Wed, 18 Dec 2024 00:33:56 +0000 Subject: [PATCH] ci: fix ptrace perms --- .github/workflows/build.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c45579d..268172f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: - name: Test (X86) run: | - docker run -e PYTHONUNBUFFERED=1 --rm --workdir /opt/pyda/tests --entrypoint python3 pyda_tmp run_tests.py --debug + docker run --cap-add=SYS_PTRACE -e PYTHONUNBUFFERED=1 --rm --workdir /opt/pyda/tests --entrypoint python3 pyda_tmp run_tests.py --debug - name: Push image uses: docker/build-push-action@v4.1.1 diff --git a/Dockerfile b/Dockerfile index 7ff4b32..79655ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y wget python3-pip build-essential gdb lcov pkg-config \ libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ - lzma lzma-dev tk-dev uuid-dev zlib1g-dev ncurses-bin && \ + lzma lzma-dev tk-dev uuid-dev zlib1g-dev && \ rm -rf /var/lib/apt/lists/* # install openssl to make python happy