From c23f835fd3c090cafff9bbf6e2d593d6453907f0 Mon Sep 17 00:00:00 2001 From: marcstreeter Date: Tue, 18 Sep 2018 13:03:19 -0500 Subject: [PATCH] Added alpine linux documentation unable to install on alpine linux without additional steps (even after 0.1.5) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 088bb205..e2ecf5a2 100755 --- a/README.md +++ b/README.md @@ -130,6 +130,13 @@ Running py-spy inside of a docker container will also usually bring up a permiss This error is caused by docker restricting the process_vm_readv system call we are using. This can be overridden by setting [```--cap-add SYS_PTRACE```](https://docs.docker.com/engine/security/seccomp/) when starting the docker container. + +### Running py-spy in Alpine Linux + +Alpine python opts out of the `manylinux` wheels: [pypa/pip#3969 (comment)](https://github.com/pypa/pip/issues/3969#issuecomment-247381915). Before installing py-spy on Alpine docker containers do: + + echo 'manylinux1_compatible = True' > /usr/local/lib/python3.7/site-packages/_manylinux.py + ### Running under Kubernetes py-spy needs `SYS_PTRACE` to be able to read process memory. Kubernetes drops that capability by default, resulting in the error