Skip to content

Commit 89bef75

Browse files
committed
Verify .NET runtime dependencies
1 parent 79dbfc9 commit 89bef75

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
# Check that all dynamically linked libraries exist in the run image
6+
INSTALL_DIR="$(command -v dotnet)"
7+
ldd_output=$(find "$(dirname "${INSTALL_DIR}")" -type f,l \( -name 'dotnet' -o -name '*.so*' \) -exec ldd '{}' +)
8+
if grep 'not found' <<<"${ldd_output}" | sort --unique; then
9+
echo "The above dynamically linked libraries were not found!"
10+
exit 1
11+
else
12+
echo "All dynamically linked libraries were found."
13+
fi

spec/hatchet/buildpack_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
remote: Procfile declares types -> \\(none\\)
4141
remote: Default types for buildpack -> foo
4242
REGEX
43+
44+
expect(app.run('bin/test-runtime.sh')).to match('All dynamically linked libraries were found.')
4345
end
4446
end
4547
end

0 commit comments

Comments
 (0)