Skip to content

Commit 1cc0929

Browse files
committed
Trying to fix the build, updated Dockerfile
1 parent 150a3ce commit 1cc0929

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ RUN cat > analyze_binary.sh << 'EOF'
5656
set -e
5757

5858
echo "=== EDGE-CORE BINARY ANALYSIS ==="
59-
echo "Binary: $(file ./edge-core)"
60-
echo "Size: $(stat -c%s ./edge-core) bytes"
59+
echo "Binary: \$(file ./edge-core)"
60+
echo "Size: \$(stat -c%s ./edge-core) bytes"
6161
echo ""
6262

6363
echo "=== DYNAMIC DEPENDENCIES (ldd) ==="
@@ -86,11 +86,11 @@ echo "Mapping dynamic libraries to system packages..."
8686
> edge-core-package-mapping.txt
8787
if [ -s edge-core-dynamic-deps.txt ]; then
8888
while IFS= read -r line; do
89-
if [[ $line =~ .*=>.*\(.*\) ]]; then
90-
lib_path=$(echo "$line" | awk '{print $3}')
91-
if [ "$lib_path" != "(0x" ] && [ -f "$lib_path" ]; then
92-
package=$(dpkg -S "$lib_path" 2>/dev/null | cut -d: -f1 || echo "unknown")
93-
echo "$lib_path -> $package" >> edge-core-package-mapping.txt
89+
if [[ \$line =~ .*=>.*\(.*\) ]]; then
90+
lib_path=\$(echo "\$line" | awk '{print \$3}')
91+
if [ "\$lib_path" != "(0x" ] && [ -f "\$lib_path" ]; then
92+
package=\$(dpkg -S "\$lib_path" 2>/dev/null | cut -d: -f1 || echo "unknown")
93+
echo "\$lib_path -> \$package" >> edge-core-package-mapping.txt
9494
fi
9595
fi
9696
done < edge-core-dynamic-deps.txt
@@ -102,10 +102,10 @@ echo "Analyzing licenses of dependencies..."
102102
> edge-core-license-analysis.txt
103103
if [ -s edge-core-package-mapping.txt ]; then
104104
while IFS= read -r line; do
105-
package=$(echo "$line" | cut -d' ' -f3)
106-
if [ "$package" != "unknown" ] && [ "$package" != "" ]; then
107-
license=$(dpkg-query -W -f='${Package}: ${License}\n' "$package" 2>/dev/null || echo "$package: License info not available")
108-
echo "$license" >> edge-core-license-analysis.txt
105+
package=\$(echo "\$line" | cut -d' ' -f3)
106+
if [ "\$package" != "unknown" ] && [ "\$package" != "" ]; then
107+
license=\$(dpkg-query -W -f='\${Package}: \${License}\n' "\$package" 2>/dev/null || echo "\$package: License info not available")
108+
echo "\$license" >> edge-core-license-analysis.txt
109109
fi
110110
done < edge-core-package-mapping.txt
111111
fi

0 commit comments

Comments
 (0)