From c05b2115dcd2e64419c5c4a8519d526ec35579ee Mon Sep 17 00:00:00 2001 From: Anatoliy Bazko Date: Fri, 12 Jul 2019 08:31:00 +0300 Subject: [PATCH 1/4] Add ASP.NET devfile Signed-off-by: Anatoliy Bazko --- devfiles/dotnet-asp.net/devfile.yaml | 67 ++++++++++++++++++++++++++++ devfiles/dotnet-asp.net/meta.yaml | 6 +++ 2 files changed, 73 insertions(+) create mode 100644 devfiles/dotnet-asp.net/devfile.yaml create mode 100644 devfiles/dotnet-asp.net/meta.yaml diff --git a/devfiles/dotnet-asp.net/devfile.yaml b/devfiles/dotnet-asp.net/devfile.yaml new file mode 100644 index 000000000..d0cf6c46a --- /dev/null +++ b/devfiles/dotnet-asp.net/devfile.yaml @@ -0,0 +1,67 @@ +--- +apiVersion: 1.0.0 +metadata: + name: asp.net +projects: + - + name: aspnetcore-example + source: + type: git + location: "https://github.com/gothinkster/aspnetcore-realworld-example-app" +components: + - + type: chePlugin + id: redhat-developer/che-omnisharp-plugin/latest + memoryLimit: 1024Mi + - + type: chePlugin + id: redhat-developer/netcoredbg-theia-plugin/latest + memoryLimit: 512Mi + - + type: dockerimage + alias: dotnet + image: mcr.microsoft.com/dotnet/core/sdk:2.2-stretch + command: ['sleep'] + args: ['infinity'] + env: + - name: HOME + value: /home/user + - name: PS1 + value: $(echo ${0})\\$ + memoryLimit: 512Mi + endpoints: + - name: '5000' + port: 5000 + mountSources: true + volumes: + - name: dotnet + containerPath: "/home/user" +commands: + - + name: install Cake + actions: + - type: exec + component: dotnet + command: "dotnet tool install -g Cake.Tool" + workdir: ${CHE_PROJECTS_ROOT}/aspnetcore-example + - + name: build + actions: + - type: exec + component: dotnet + command: "$HOME/.dotnet/tools/dotnet-cake --runtime=linux-x64" + workdir: ${CHE_PROJECTS_ROOT}/aspnetcore-example + - + name: re-build + actions: + - type: exec + component: dotnet + command: "$HOME/.dotnet/tools/dotnet-cake --target=Rebuild --runtime=linux-x64" + workdir: ${CHE_PROJECTS_ROOT}/aspnetcore-example + - + name: run server + actions: + - type: exec + component: dotnet + command: "dotnet run --project src/Conduit/Conduit.csproj" + workdir: ${CHE_PROJECTS_ROOT}/aspnetcore-example diff --git a/devfiles/dotnet-asp.net/meta.yaml b/devfiles/dotnet-asp.net/meta.yaml new file mode 100644 index 000000000..516d96a84 --- /dev/null +++ b/devfiles/dotnet-asp.net/meta.yaml @@ -0,0 +1,6 @@ +--- +displayName: "ASP.NET Core Web Application" +description: Stack for developing ASP.NET Core Web Application +tags: ["Debian", "Dotnet", "C#", "ASP.NET"] +icon: https://www.eclipse.org/che/images/logo-eclipseche.svg +globalMemoryLimit: 2710Mi From 08798be55bf8307911cf9ed8b03794d67a46d195 Mon Sep 17 00:00:00 2001 From: Anatoliy Bazko Date: Mon, 5 Aug 2019 10:26:49 +0300 Subject: [PATCH 2/4] Update docker image for dev container Signed-off-by: Anatoliy Bazko --- devfiles/dotnet-asp.net/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfiles/dotnet-asp.net/devfile.yaml b/devfiles/dotnet-asp.net/devfile.yaml index d0cf6c46a..f3170e59c 100644 --- a/devfiles/dotnet-asp.net/devfile.yaml +++ b/devfiles/dotnet-asp.net/devfile.yaml @@ -20,7 +20,7 @@ components: - type: dockerimage alias: dotnet - image: mcr.microsoft.com/dotnet/core/sdk:2.2-stretch + image: quay.io/eclipse/che-dotnet-2.2:nightly command: ['sleep'] args: ['infinity'] env: From db36720c7adb35f8849a3616271e213fa6e9a541 Mon Sep 17 00:00:00 2001 From: Anatoliy Bazko Date: Mon, 5 Aug 2019 13:58:24 +0300 Subject: [PATCH 3/4] Fix sample by adding redirection Signed-off-by: Anatoliy Bazko --- devfiles/dotnet-asp.net/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfiles/dotnet-asp.net/devfile.yaml b/devfiles/dotnet-asp.net/devfile.yaml index f3170e59c..842d50d9e 100644 --- a/devfiles/dotnet-asp.net/devfile.yaml +++ b/devfiles/dotnet-asp.net/devfile.yaml @@ -7,7 +7,7 @@ projects: name: aspnetcore-example source: type: git - location: "https://github.com/gothinkster/aspnetcore-realworld-example-app" + location: "https://github.com/che-samples/aspnetcore-realworld-example-app" components: - type: chePlugin From 0178e833cfb11a5a88cd61238ad0c1fc868c3b74 Mon Sep 17 00:00:00 2001 From: Anatoliy Bazko Date: Thu, 19 Sep 2019 16:13:26 +0300 Subject: [PATCH 4/4] Fix Signed-off-by: Anatoliy Bazko --- devfiles/dotnet-asp.net/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfiles/dotnet-asp.net/devfile.yaml b/devfiles/dotnet-asp.net/devfile.yaml index 842d50d9e..a64cf8876 100644 --- a/devfiles/dotnet-asp.net/devfile.yaml +++ b/devfiles/dotnet-asp.net/devfile.yaml @@ -1,7 +1,7 @@ --- apiVersion: 1.0.0 metadata: - name: asp.net + generateName: asp.net- projects: - name: aspnetcore-example