Skip to content

Commit 8bf5b05

Browse files
strip -g
1 parent 56152da commit 8bf5b05

File tree

6 files changed

+11
-1
lines changed

6 files changed

+11
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.pyx -delete
7777
# reduce the size when ddtrace is built from sources. The release wheels are
7878
# already stripped of debug symbols. We should revisit this when serverless
7979
# benchmark uses pre-built wheels instead of building from sources.
80-
RUN find ./python/lib/$runtime/site-packages/ddtrace -name "*.so" -exec strip -g {} \;
80+
RUN find ./python/lib/$runtime/site-packages -name "*.so" -exec strip -g {} \;
8181

8282
FROM scratch
8383
COPY --from=builder /build/python /

discard-all.zip

7.87 MB
Binary file not shown.

discard-locals.zip

8.41 MB
Binary file not shown.

pub_layer.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
layer_arn=$(
2+
aws-vault exec sso-serverless-sandbox-account-admin -- \
3+
aws lambda publish-layer-version --layer-name "Python312-discard-all-rithika" \
4+
--description "Datadog Tracer Lambda Layer for Python" \
5+
--zip-file "fileb://./discard-all.zip" \
6+
--region "us-west-2" \
7+
--output json \
8+
| jq -r '.LayerVersionArn')
9+
10+
echo $layer_arn

strip_unneeded.zip

7.84 MB
Binary file not shown.

stripped_g.zip

8.36 MB
Binary file not shown.

0 commit comments

Comments
 (0)