Skip to content

Commit 34a45d0

Browse files
chore: Remove committed RIE binaries and download at build time (#950)
https://datadoghq.atlassian.net/browse/SVLS-8083 ## Overview chore: Remove committed RIE binaries and download at build time - Delete local_tests/rie/bottlecap/arm64/rie binary - Delete local_tests/rie/bottlecap/x86/rie binary - Update Dockerfile to download AWS Lambda RIE from GitHub releases instead of copying local binary - Improves maintainability by avoiding committed binaries in version control ## Testing Confirmed by local debugging tests Co-authored-by: tianning.li <tianning.li@datadoghq.com>
1 parent 585c745 commit 34a45d0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

local_tests/bottlecap/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
3232
ENV PATH=/root/.cargo/bin:$PATH
3333

3434

35-
# The first path is where the custom RIE lives.
36-
COPY local_tests/rie/${TARGET}/arm64/rie /usr/local/bin/aws-lambda-rie
35+
# Download the AWS Lambda Runtime Interface Emulator from GitHub releases
36+
RUN curl -Lo /usr/local/bin/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie-arm64 \
37+
&& chmod +x /usr/local/bin/aws-lambda-rie
3738

3839
# The first path is the location of your local agent binary
3940
COPY .binaries/bottlecap-arm64 /opt/extensions/datadog-agent
-6.38 MB
Binary file not shown.

local_tests/rie/bottlecap/x86/rie

-6.76 MB
Binary file not shown.

0 commit comments

Comments
 (0)