-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
57 lines (55 loc) · 1.37 KB
/
devfile.yaml
File metadata and controls
57 lines (55 loc) · 1.37 KB
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
50
51
52
53
54
55
56
57
schemaVersion: 2.2.2
metadata:
name: workshop-module4-dotnet
version: 1.0.0
description: DevSpaces workspace for .NET app
attributes:
che-editor: vscode
components:
- container:
args:
- tail
- -f
- /dev/null
endpoints:
- name: https-net-5000
protocol: https
targetPort: 5000
- name: https-net-5001
protocol: https
targetPort: 5001
env:
- name: countryCode
value: "fr"
image: image-registry.openshift-image-registry.svc.cluster.local:5000/openshift/devspaces-dotnet-python:latest
mountSources: true
name: dotnet
commands:
- exec:
commandLine: dotnet restore
component: dotnet
group:
kind: build
workingDir: ${PROJECT_SOURCE}/hello-world-v1
id: dotnet-build-hello-world-v1
- exec:
commandLine: dotnet run --urls "http://0.0.0.0:5000"
component: dotnet
group:
kind: run
workingDir: ${PROJECT_SOURCE}/hello-world-v1
id: run-dotnet-hello-world-v1
- exec:
commandLine: dotnet restore
component: dotnet
group:
kind: build
workingDir: ${PROJECT_SOURCE}/hello-world-v2
id: dotnet-build-hello-world-v2
- exec:
commandLine: dotnet run --urls "http://0.0.0.0:5001"
component: dotnet
group:
kind: run
workingDir: ${PROJECT_SOURCE}/hello-world-v2
id: run-dotnet-hello-world-v2