feat: upgrade Alpine to 3.20, libexecinfo fixes, make tests work
All checks were successful
ZeroDownTime/sns-alert-hub/pipeline/head This commit looks good
ZeroDownTime/sns-alert-hub/pipeline/tag This commit looks good

This commit is contained in:
Stefan Reimer 2024-09-12 06:17:31 +00:00
parent 6124f0454b
commit 208749d01e
2 changed files with 4 additions and 6 deletions

View File

@ -1,9 +1,6 @@
# https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/
# libexec is missing from >=3.17
# Stage 1 - bundle base image + runtime
FROM python:3.12-alpine3.19 AS python-alpine
ARG ALPINE="v3.19"
FROM python:3.12-alpine3.20 AS python-alpine
ARG ALPINE="v3.20"
# Install GCC (Alpine uses musl but we compile and link dependencies with GCC)
RUN echo "@kubezero https://cdn.zero-downtime.net/alpine/${ALPINE}/kubezero" >> /etc/apk/repositories && \
@ -29,7 +26,7 @@ RUN apk --no-cache add \
libcurl \
libffi-dev \
openssl-dev \
libexecinfo-dev@kubezero
elfutils-dev
# cargo
# Install requirements

View File

@ -9,6 +9,7 @@ buildah copy $ctr dev-requirements.txt .flake8 .
buildah copy $ctr aws-lambda-rie
buildah copy $ctr tests/ tests/
buildah run $ctr apk add zstd-libs
buildah run $ctr pip install -r dev-requirements.txt --target .
buildah run $ctr python -m flake8 app.py