diff --git a/devfiles/dotnet-asp.net/devfile.yaml b/devfiles/dotnet-asp.net/devfile.yaml new file mode 100644 index 000000000..a64cf8876 --- /dev/null +++ b/devfiles/dotnet-asp.net/devfile.yaml @@ -0,0 +1,67 @@ +--- +apiVersion: 1.0.0 +metadata: + generateName: asp.net- +projects: + - + name: aspnetcore-example + source: + type: git + location: "https://github.com/che-samples/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: quay.io/eclipse/che-dotnet-2.2:nightly + 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