From ef87daf5af1de5d0031ad946f20e1601f1fb905e Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Tue, 16 Aug 2022 17:33:25 -0400 Subject: update `dotnet`/`oryx` features to use recommended install location for dotnet6 (#91) * use default jammy apt feed to mitigate jammy/oryx install issues * remove old comment * jammy first tries default apt repo * refactoring * glob friendly and tests * test files * better greps * correct path * DEBIAN_FRONTEND global in oryx install script * remove set -e from dotnet script to handle errors ourselves --- test-scenarios/install_dotnet_3.sh | 13 +++++++++++++ test-scenarios/install_dotnet_5.sh | 14 ++++++++++++++ test-scenarios/scenarios.json | 16 ++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 test-scenarios/install_dotnet_3.sh create mode 100644 test-scenarios/install_dotnet_5.sh (limited to 'test-scenarios') diff --git a/test-scenarios/install_dotnet_3.sh b/test-scenarios/install_dotnet_3.sh new file mode 100644 index 0000000..0d05215 --- /dev/null +++ b/test-scenarios/install_dotnet_3.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "dotnet sdks" dotnet --list-sdks +check "some major version of dotnet 3 is installed" dotnet --list-sdks | grep '3\.[0-9]*\.[0-9]*' +check "dotnet version 3 installed" ls -l /usr/share/dotnet/sdk | grep '3\.[0-9]*\.[0-9]*' + +# Report result +reportResults diff --git a/test-scenarios/install_dotnet_5.sh b/test-scenarios/install_dotnet_5.sh new file mode 100644 index 0000000..5f48eb1 --- /dev/null +++ b/test-scenarios/install_dotnet_5.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "dotnet sdks" dotnet --list-sdks +check "some major version of dotnet 5 is installed" dotnet --list-sdks | grep '5\.[0-9]*\.[0-9]*' +check "dotnet version 5 installed" ls -l /usr/share/dotnet/sdk | grep '5\.[0-9]*\.[0-9]*' + + +# Report result +reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index 3398df7..853da2f 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -75,5 +75,21 @@ "additionalVersions": "5.0,3.1.420" } } + }, + "install_dotnet_5": { + "image": "ubuntu:focal", + "features": { + "dotnet": { + "version": "5" + } + } + }, + "install_dotnet_3": { + "image": "ubuntu:focal", + "features": { + "dotnet": { + "version": "3" + } + } } } -- cgit v1.2.3