zio / zio-lambda

AWS Lambda Runtime built with ZIO
https://zio.dev/zio-lambda
Apache License 2.0
38 stars 14 forks source link

GLIBC_2.32 Missing Error with gcr.io/distroless/base in zio-lambda Docker Containers #256

Closed kijuky closed 7 months ago

kijuky commented 8 months ago

Description:

When utilizing lambda functions within Docker containers with the zio-lambda library, an error occurs due to the absence of GLIBC_2.32 when using gcr.io/distroless/base. This issue can be resolved by switching to gcr.io/distroless/base-debian12.

Steps to Reproduce:

  1. Set up a lambda function within a Docker container using gcr.io/distroless/base.
  2. Attempt to execute the lambda function.
  3. Encounter GLIBC_2.32 missing error.

    Expected Behavior:

    Lambda function should execute without errors.

Actual Behavior:

GLIBC_2.32 missing error occurs, hindering the execution of the lambda function.

Resolution:

Switching to gcr.io/distroless/base-debian12 resolves this issue.

Documentation Update:

The documentation at https://github.com/zio/zio-lambda/blob/master/docs/index.md?plain=1#L91 should be updated to reflect this resolution.

Reference Information:

jrmsamson commented 8 months ago

Thanks for reporting, I'll look into it