From 822e8eb148fa39c7c8710d9a8cd99d79934ebb61 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sun, 28 Apr 2024 00:41:02 +0300 Subject: [PATCH] Added workload --- .../dotnet-workload/devcontainer-feature.json | 17 +++++++++++++++++ features/dotnet-workload/install.sh | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 features/dotnet-workload/devcontainer-feature.json create mode 100644 features/dotnet-workload/install.sh diff --git a/features/dotnet-workload/devcontainer-feature.json b/features/dotnet-workload/devcontainer-feature.json new file mode 100644 index 0000000..196d42f --- /dev/null +++ b/features/dotnet-workload/devcontainer-feature.json @@ -0,0 +1,17 @@ +{ + "id": "dotnet-workload", + "version": "1.0.0", + "name": "dotnet workload", + "documentationURL": "", + "description": "dotnet workload", + "options": { + "workload": { + "type": "string", + "default": "", + "description": "Choose your favorite color." + } + }, + "installsAfter": [ + "ghcr.io/devcontainers/features/dotnet" + ] +} \ No newline at end of file diff --git a/features/dotnet-workload/install.sh b/features/dotnet-workload/install.sh new file mode 100644 index 0000000..4d90060 --- /dev/null +++ b/features/dotnet-workload/install.sh @@ -0,0 +1,9 @@ +#!/bin/bash +export DEBIAN_FRONTEND=noninteractive + +echo "(*) Installing dotnet workload" + +dotnet workload update +dotnet workload ${WORKLOAD} + +echo "Done!" \ No newline at end of file