Repository navigation
Commit 17e3dc7
committed
fix: update pprof prebuild cleanup for @datadog/pprof 5.14.4
The @datadog/pprof package restructured its prebuilds in 5.14.4,
breaking the Dockerfile cleanup that removes unused platform/ABI
binaries from the Lambda layer:
1. Platform directories renamed: linuxglibc-x64 -> linux-x64,
linuxglibc-arm64 -> linux-arm64. The old linuxmusl-* dirs no
longer exist as separate dirs; musl .node files now live alongside
glibc inside linux-x64/ and linux-arm64/.
2. File naming changed: node-111.node -> dd_pprof.node.abi111.node,
so the old glob patterns matched nothing.
This caused 36 files (8.6 MB) of unnecessary prebuilds to ship in the
layer instead of 8 files (2.1 MB). The fix updates the cleanup to use
the new directory/file naming and removes musl binaries via glob,
bringing the layer down to 6 files (1.8 MB).1 parent 74e44c7 commit 17e3dc7
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 60 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments