You can use the endorctl api
command to configure the toolchains for your project.
- Run the endorctl scan to create a project.
endorctl scan
- Fetch the UUID of the project, for example, to fetch the UUID of the
app-java-demo
project, you can use:
UUID=$(endorctl api list -r Project --filter="meta.name matches https://github.com/endorlabs/app-java-demo" --field-mask=uuid | jq -r '.list.objects[].uuid')
- Create a
ScanProfile
object using the following command. Set the environment variable usingset EDITOR=vim
before executing the following command.
endorctl api create -i -r ScanProfile
Here is an example that you can use to create a ScanProfile
object for installing .NET 8.0.303. After executing this command, you can fetch the UUID of the ScanProfile
object. See Reference toolchain specification for a complete description of supported toolchains.
spec:
toolchain_profile:
os:
linux:
arch:
amd64:
dotnet_tool_chain:
version:
name: "9.0.200"
urls:
- "https://download.visualstudio.microsoft.com/download/pr/3606de37-1325-4f5f-bbe9-1bc44b3c1c7f/91872629e9f0c205cace9c462d5e89a4/dotnet-sdk-9.0.200-linux-x64.tar.gz"
sha256_sum: "c07281a0abbd2c3200e70fc94d374baeadfbb43c9c3fe90c6038253555b84335"
- Associate the
scan_profile_uuid
to your project UUID<project-uuid
, using the following command.
endorctl api update -r Project --uuid=<project-uuid> -d '{"spec":{"scan_profile_uuid":"<scanprofile-uuid>"}}' --field-mask 'spec.scan_profile_uuid'
You have now created a toolchain for installing .NET 8.0.303.