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

Commit

Permalink
Add ASP.NET devfile (#32)
Browse files Browse the repository at this point in the history
* Add ASP.NET devfile

Signed-off-by: Anatoliy Bazko <[email protected]>
  • Loading branch information
tolusha authored Sep 19, 2019
1 parent 1c5a660 commit 80586f3
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
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

0 comments on commit 80586f3

Please sign in to comment.