Skip to content

Commit 106b6fd

Browse files
author
Alexander Smirnov
committed
Fix alpine
1 parent 27e3ec6 commit 106b6fd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/integration/codebuild/buildspec.os.alpine.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ phases:
5959
-f "${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp" \
6060
-t "${IMAGE_TAG}" \
6161
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
62-
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" --load
62+
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
63+
--load
6364
build:
6465
commands:
6566
- set -x

tests/integration/codebuild/buildspec.os.debian.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ phases:
5858
-f "${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp" \
5959
-t "${IMAGE_TAG}" \
6060
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
61-
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" --load
61+
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
62+
--load
6263
build:
6364
commands:
6465
- set -x

tests/integration/docker/Dockerfile.echo.alpine

+4-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ ARG DISTRO_VERSION
77
FROM public.ecr.aws/docker/library/python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS python-alpine
88
# Install libstdc++
99
RUN apk add --no-cache \
10-
libstdc++
10+
libstdc++ \
11+
binutils
1112

1213

1314
# Stage 2 - build function and dependencies
@@ -39,15 +40,12 @@ ARG FUNCTION_DIR="/home/app/"
3940
RUN mkdir -p ${FUNCTION_DIR}
4041
# Copy function code
4142
COPY tests/integration/test-handlers/echo/* ${FUNCTION_DIR}
42-
# Copy Runtime Interface Client .tgz
43-
RUN cp ./dist/awslambdaric-test.tar.gz ${FUNCTION_DIR}/awslambdaric-test.tar.gz
4443

4544
# Install the function's dependencies
4645
WORKDIR ${FUNCTION_DIR}
4746
RUN python${RUNTIME_VERSION} -m pip install \
48-
awslambdaric-test.tar.gz \
49-
--target ${FUNCTION_DIR} && \
50-
rm awslambdaric-test.tar.gz
47+
${RIC_BUILD_DIR}/dist/awslambdaric-test.tar.gz \
48+
--target ${FUNCTION_DIR}
5149

5250

5351
# Stage 3 - final runtime interface client image

0 commit comments

Comments
 (0)