Skip to content

Commit

Permalink
Merge pull request #1 from marcstreeter/marcstreeter-alpine-linux-readme
Browse files Browse the repository at this point in the history
Added alpine linux documentation
  • Loading branch information
marcstreeter authored Sep 18, 2018
2 parents e875e3e + c23f835 commit 67bafb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67bafb3

Please sign in to comment.