Skip to content

Commit

Permalink
AmazonLinux fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Smirnov committed Aug 1, 2024
1 parent 17bdefc commit 5f42ada
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/codebuild/buildspec.os.amazonlinux.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ phases:
-t "${IMAGE_TAG}" \
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
--build-arg ARCHITECTURE="${ARCHITECTURE}" --load
--build-arg ARCHITECTURE="${ARCHITECTURE}" \
--load
build:
commands:
- set -x
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/docker/Dockerfile.echo.amazonlinux
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ RUN mkdir -p ${RIC_BUILD_DIR}
# Copy function code and Runtime Interface Client .tgz
WORKDIR ${RIC_BUILD_DIR}
COPY . .

# distutils no longer available in python3.12 and later
# https://docs.python.org/3/whatsnew/3.12.html
# https://peps.python.org/pep-0632/
RUN if [ $(cut -d '.' -f 2 <<< ${RUNTIME_VERSION}) -ge 12 ]; then pip3 install setuptools; fi
RUN make init build test && \
mv ./dist/awslambdaric-*.tar.gz ./dist/awslambdaric-test.tar.gz

Expand Down

0 comments on commit 5f42ada

Please sign in to comment.