Skip to content

Commit 5f42ada

Browse files
author
Alexander Smirnov
committed
AmazonLinux fixes
1 parent 17bdefc commit 5f42ada

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/integration/codebuild/buildspec.os.amazonlinux.2.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ phases:
5555
-t "${IMAGE_TAG}" \
5656
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
5757
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
58-
--build-arg ARCHITECTURE="${ARCHITECTURE}" --load
58+
--build-arg ARCHITECTURE="${ARCHITECTURE}" \
59+
--load
5960
build:
6061
commands:
6162
- set -x

tests/integration/docker/Dockerfile.echo.amazonlinux

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ RUN mkdir -p ${RIC_BUILD_DIR}
8080
# Copy function code and Runtime Interface Client .tgz
8181
WORKDIR ${RIC_BUILD_DIR}
8282
COPY . .
83+
84+
# distutils no longer available in python3.12 and later
85+
# https://docs.python.org/3/whatsnew/3.12.html
86+
# https://peps.python.org/pep-0632/
87+
RUN if [ $(cut -d '.' -f 2 <<< ${RUNTIME_VERSION}) -ge 12 ]; then pip3 install setuptools; fi
8388
RUN make init build test && \
8489
mv ./dist/awslambdaric-*.tar.gz ./dist/awslambdaric-test.tar.gz
8590

0 commit comments

Comments
 (0)