Using gnupg2-full in Lambda docker base image public.ecr.aws/lambda/python:3.12

0

The docker base image public.ecr.aws/lambda/python:3.12 is the first Python base image for AWS Lambda which comes with Amazon Linux 2023. Unlike Amazon Linux 2, this OS only ships only with a minimal version of gnupg2. AWS recommends to use dnf swap for replacing gnupg2-minimal with gnupg2-full.

However, this docker base image does not even ship with a full fledged dnf package manager but with microdnf, which has no support for swap.

I am looking for a way to get a full version of gnupg2 back into my Python3.12 Lamba function. The Lambda function that we have developed uses python-gnupg extensively and stopped working when we went from public.ecr.aws/lambda/python:3.10 to public.ecr.aws/lambda/python:3.12.

What are my options?

  • use a different base image that contains Python3.12 and is Lambda compatible - recommendations?
  • find a way to replace gnupg2-minimal with gnupg2-full when public.ecr.aws/lambda/python:3.12 is the base in a Dockerfile?
  • anything else?

Suggestions anyone?

reikje
질문됨 3달 전97회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠