Downloading the .NET Core agent
The latest version of the dot net core agent can be downloaded in two archive formats:
https://agents.sealights.co/dotnetcore/sealights-dotnet-agent-latest.tar.gz
https://agents.sealights.co/dotnetcore/sealights-dotnet-agent-latest.zip
The same archive contains an executable built for both Windows and Linux OS. Still, for convenience, we provide archive formats to support the native capabilities of Linux (.tar.gz
) and Windows (.zip
). It is especially relevant when working with containers.
If you have a limitation accessing the endpoint agents.sealights.co and are limited to your specific servers DNS, then you can also get the agent from https://{company}.sealights.co//dotnetcore/sealights-dotnet-agent-latest.tar.gz
Replace {company}
with your company dns prefix
Sample commands for download
Download the agent for Linux - TAR GZ archive
wget -nv https://agents.sealights.co/dotnetcore/sealights-dotnet-agent-latest.tar.gz
mkdir sl-dotnet-agent && tar -xzf ./sealights-dotnet-agent-latest.tar.gz --directory ./sl-dotnet-agent
echo "[Sealights] .NetCore Agent version is: `cat ./sl-dotnet-agent/version.txt`"
#curl tool can also be used
#curl -L "https://agents.sealights.co/dotnetcore/sealights-dotnet-agent-latest.tar.gz" --output sealights-dotnet-agent-latest.tar.gz
Download the agent for Windows - ZIP archive
iwr -OutFile sealights-dotnet-agent.zip -UseBasicParsing -Uri https://agents.sealights.co/dotnetcore/sealights-dotnet-agent-latest.zip
Expand-Archive .\sealights-dotnet-agent.zip -DestinationPath sl-dotnet-agent -Force
Write-Output "[Sealights] .NetCore Agent version is: $(Get-Content .\sl-dotnet-agent\version.txt)"
Agent version for Alpine Linux distribution
The Alpine distribution uses musl as the standard C library implementation, while most other Linux distributions use glibc as their standard C library implementation [Source]. It means that the library compiled with glibc
depends on a different set of standard libraries and leads to a separate artifact for Alpine distributions. The code base remains the same, only the build configuration is different.
The dot net core agent for alpine can be downloaded from:
To use the dot net core agent on alpine distribution you’ll need to install musl
and libexecinfo
prerequisites (dependencies) via the following command: apk add --no-cache musl libexecinfo
The Microsoft dotnet/runtime-deps base image does not contain a dotnet
executable, and only a self-contained .net app can be executed in such an environment. For this purpose, the alpine version of the agent also contains an agent compiled as a self-contained app you can use by replacing dotnet ./SL.DotNet.dll
in the commands (from our documentation pages) by ./SL.DotNet
(without file extension)
This solution is also relevant when running an application in an alpine image with a dot net version prior to 6.0.x
(e.g 3.x.x
) and avoids installing another dot net version in the container for Sealights agent.
Sample commands to download the dot net core agent for Alpine
wget -nv -O sealights-dotnet-agent-alpine.tar.gz https://agents.sealights.co/dotnetcore/sealights-dotnet-agent-3.2.0-alpine-self-contained.tar.gz
mkdir sl-dotnet-agent && tar -xzf ./sealights-dotnet-agent-alpine.tar.gz --directory ./sl-dotnet-agent
echo "[Sealights] .NetCore (Alpine) Agent version is: `cat ./sl-dotnet-agent/version.txt`"
apk add --no-cache musl libexecinfo