Skip to content

Commit 9181993

Browse files
committed
Add dotnet support in runner image for setup-build-env.sh
1 parent bcb1743 commit 9181993

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build-files/build-image.sh

+11
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ setup_dotnet_sdk() {
6060
if [ $? -ne 0 ]; then
6161
return 3
6262
fi
63+
if [ ${BTOOLS} -eq 1 ]; then
64+
echo "Installing dotnet in /opt/dotnet cache."
65+
for dndeb in $(ls /tmp/dotnet*.deb)
66+
do
67+
dpkg-deb -xv $dndeb /tmp/dotnet-deb-extract
68+
done
69+
sudo cp -R /tmp/dotnet-deb-extract/usr/lib64/dotnet /opt/dotnet
70+
sudo chown -R ubuntu:ubuntu /opt/dotnet
71+
rm -rf /tmp/dotnet-deb-extract
72+
fi
73+
6374
sudo rm -f /tmp/*.deb
6475
popd >/dev/null
6576

0 commit comments

Comments
 (0)