aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
260 stars 74 forks source link

Document OS-level dependencies #24

Open jantman opened 3 years ago

jantman commented 3 years ago

The README states that this project is compatible with Amazon Linux 2, Alpine, CentOS, Debian, and Ubuntu but only lists an example Dockerfile with dependencies for a Debian variant.

I'm currently about an hour into trying to pip install awslambaric in the official python:3.8-alpine image, which is based on alpine:3.13. I'm still in the process of discovering build dependencies and what Alpine packages provide them.

A listing of the OS-level dependencies for supported OSes would be greatly helpful.

For Alpine, what I've come up with is:

apk add \
      autoconf \
      automake \
      cmake \
      g++ \
      gcc \
      libexecinfo-dev \
      libffi-dev \
      libtool \
      linux-headers \
      make \
      musl-dev \
      openssl-dev \
omidontop commented 3 years ago

@jantman Thanks for sharing, it was a big help!

dkarp0 commented 3 years ago

For Amazon Linux 2, this works:

RUN yum update && yum groupinstall -y "Development Tools" && \
  yum install -y \
  cmake3 \
  libcurl-devel \
  python3 \
  python3-devel \
  python3-pip \
  gzip
austinbutler commented 3 years ago

Ran into the same issue with Nix, submitted a PR to package awslambdaric. You can see the dependencies for Nix there.