Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Add ASP.NET devfile #32

Merged
merged 4 commits into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions devfiles/dotnet-asp.net/devfile.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions devfiles/dotnet-asp.net/meta.yaml
Original file line number Diff line number Diff line change
@@ -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