forked from che-samples/dotnet-web-simple
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdevfile.yaml
49 lines (49 loc) · 1.21 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
49
schemaVersion: 2.2.2
metadata:
name: dotnet
components:
- name: tools
container:
# quay.io/devspaces/dotnet-90:9.0-fedora-20250415-095811
image: quay.io/devspaces/dotnet-90@sha256:5cb201f58ebf20d76b7b99e013da46aa6cfe594c5763ab873bcc6436965d7859
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