Skip to content

Commit

Permalink
install dotnet in prepare-machine.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Jun 18, 2024
1 parent b7b2021 commit d785357
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/log_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ if [ $sessionCreated -eq 0 ]; then
lttng destroy msquic

babeltrace --names all $dirname/data > $dirname/quic.babel.txt
./submodules/clog/src/clog2text/clog2text_lttng/bin/Release/net6.0/publish/clog2text_lttng -i $dirname/quic.babel.txt -s ./src/manifest/clog.sidecar -o $dirname/quic.log --showTimestamp --showCpuInfo
./submodules/clog/src/clog2text/clog2text_lttng/bin/Debug/net6.0/publish/clog2text_lttng -i $dirname/quic.babel.txt -s ./src/manifest/clog.sidecar -o $dirname/quic.log --showTimestamp --showCpuInfo
fi
16 changes: 16 additions & 0 deletions scripts/prepare-machine.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,23 @@ function Install-DotnetTool {
}
}

function Install-Dotnet {
if (!$IsLinux) {
Write-Host "Linux only"
}

Write-Host "Installing dotnet"
# known issue https://learn.microsoft.com/en-us/dotnet/core/install/linux-package-mixup?pivots=os-linux-ubuntu
sudo bash -c "echo 'Package: dotnet* aspnet* netstandard*' >> /etc/apt/preferences"
sudo bash -c "echo 'Pin: origin packages.microsoft.com' >> /etc/apt/preferences"
sudo bash -c "echo 'Pin-Priority: -10' >> /etc/apt/preferences"
sudo apt-get update -y
sudo apt-get install dotnet-sdk-6.0 aspnetcore-runtime-6.0 dotnet-runtime-6.0
}

function Install-Clog2Text {
Install-Dotnet

Write-Host "Initializing clog submodule"
git submodule init $RootDir/submodules/clog
git submodule update
Expand Down

0 comments on commit d785357

Please sign in to comment.