From d1220e8ac77d64f77f8e2296d1e4cb3de10a9298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 13 Jun 2023 18:06:36 +0200 Subject: [PATCH] add devfile --- README.md | 2 ++ devfile.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 devfile.yaml diff --git a/README.md b/README.md index 47ad081..0806987 100644 --- a/README.md +++ b/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). diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..83b0bc9 --- /dev/null +++ b/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