Browse Source

add devfile

main
Nicolas Massé 3 years ago
parent
commit
d1220e8ac7
  1. 2
      README.md
  2. 38
      devfile.yaml

2
README.md

@ -1,5 +1,7 @@
# Microsoft eShopOnWeb ASP.NET Core Application for Red Hat OpenShift
[![Contribute](https://www.eclipse.org/che/contribute.svg)](https://devspaces.apps.sno.itix.dev/f?url=https://github.com/nmasse-itix/eShopOnWeb)
Sample ASP.NET Core reference application, powered by Microsoft, demonstrating a single-process (monolithic) application architecture and deployment model. If you're new to .NET development, read the [Getting Started for Beginners](https://github.com/dotnet-architecture/eShopOnWeb/wiki/Getting-Started-for-Beginners) guide.
A list of Frequently Asked Questions about this repository can be found [here](https://github.com/dotnet-architecture/eShopOnWeb/wiki/Frequently-Asked-Questions).

38
devfile.yaml

@ -0,0 +1,38 @@
schemaVersion: 2.2.0
metadata:
name: eshop
components:
- attributes:
controller.devfile.io/merge-contribution: true
container:
endpoints:
- exposure: public
name: hello-endpoint
protocol: http
targetPort: 5032
image: registry.redhat.io/devspaces/udi-rhel8:3.5
memoryLimit: 2Gi
mountSources: true
sourceMapping: /projects
volumeMounts:
- name: nuget
path: /home/user/.nuget
name: tools
- name: nuget
volume:
size: 1G
commands:
- exec:
commandLine: dotnet run web
component: tools
group:
kind: run
workingDir: ${PROJECTS_ROOT}/src/Web/
id: run-web
- exec:
commandLine: dotnet run api
component: tools
group:
kind: run
workingDir: ${PROJECTS_ROOT}/src/PublicApi/
id: run-web
Loading…
Cancel
Save