From 683aaad309d5cca2581021dfa21b24107ac89f8c Mon Sep 17 00:00:00 2001 From: Muthurajan Sivasubramanian <93245779+msivasubramaniaan@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:59:13 +0530 Subject: [PATCH] Added dotnet80 stack (#452) * added dotnet80 stack Signed-off-by: msivasubramaniaan * changed version to 1.0.0 and added owner of stack Signed-off-by: msivasubramaniaan * updated code owner name Signed-off-by: msivasubramaniaan * updated schema version Signed-off-by: msivasubramaniaan --------- Signed-off-by: msivasubramaniaan --- .github/CODEOWNERS | 3 +- stacks/dotnet80/devfile.yaml | 57 ++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 stacks/dotnet80/devfile.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2c10ecb7..4f2d07e4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,12 +8,13 @@ # for every PR that updates stacks. # 2. As you may notice some stacks are owned by the devfile/devfile-services-team # directly. -# 3. All the owner mentions follow the format below: +# 3. All the owner mentions follow the format below: # @owner @reviwer-team # .Net stacks /stacks/dotnet50/ @kadel @devfile/che-team /stacks/dotnet60/ @kadel @devfile/che-team +/stacks/dotnet80/ @msivasubramaniaan @devfile/che-team /stacks/dotnetcore31/ @kadel @devfile/che-team # Golang stacks diff --git a/stacks/dotnet80/devfile.yaml b/stacks/dotnet80/devfile.yaml new file mode 100644 index 00000000..6b05a514 --- /dev/null +++ b/stacks/dotnet80/devfile.yaml @@ -0,0 +1,57 @@ +schemaVersion: 2.2.2 +metadata: + name: dotnet80 + displayName: .NET 8.0 + description: .NET 8.0 application + icon: https://github.com/dotnet/brand/raw/main/logo/dotnet-logo.png + tags: + - .NET + - .NET 8.0 + projectType: dotnet + language: .NET + version: 1.0.0 +starterProjects: + - name: dotnet80-example + git: + checkoutFrom: + remote: origin + revision: dotnet-8.0 + remotes: + origin: https://github.com/redhat-developer/s2i-dotnetcore-ex + subDir: app +components: + - name: dotnet + container: + image: registry.access.redhat.com/ubi8/dotnet-80:8.0-9 + args: ["tail", "-f", "/dev/null"] + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet80 + protocol: https + targetPort: 8080 +commands: + - id: build + exec: + workingDir: ${PROJECT_SOURCE} + commandLine: kill $(pidof dotnet); dotnet build -c $CONFIGURATION $STARTUP_PROJECT /p:UseSharedCompilation=false + component: dotnet + group: + isDefault: true + kind: build + - id: run + exec: + workingDir: ${PROJECT_SOURCE} + commandLine: dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT --no-launch-profile + component: dotnet + group: + isDefault: true + kind: run