forked from che-samples/dotnet-web-simple
-
Notifications
You must be signed in to change notification settings - Fork 14
/
devfile.yaml
48 lines (48 loc) · 1.09 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
schemaVersion: 2.2.2
metadata:
name: dotnet
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel9:3.19
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '1'
cpuRequest: '0.5'
mountSources: true
endpoints:
- exposure: public
name: 'hello-endpoint'
protocol: https
targetPort: 5032
volumeMounts:
- name: nuget
path: /home/user/.nuget
- name: nuget
volume:
size: 1G
commands:
- id: 1-update-dependencies
exec:
label: 1.Update dependencies
component: tools
workingDir: ${PROJECTS_ROOT}/dotnet-web-simple
commandLine: "dotnet restore"
group:
kind: build
- id: 2-build
exec:
label: 2.Build
component: tools
workingDir: ${PROJECTS_ROOT}/dotnet-web-simple
commandLine: "dotnet build"
group:
kind: build
- id: 3-run
exec:
label: 3.Run
component: tools
workingDir: ${PROJECTS_ROOT}/dotnet-web-simple
commandLine: "dotnet run"
group:
kind: run