This repository was archived by the owner on Nov 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +42
-4
lines changed
Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 1414 "launchBrowser" : true ,
1515 "applicationUrl" : " https://localhost:7008;http://localhost:5247" ,
1616 "environmentVariables" : {
17- "ASPNETCORE_ENVIRONMENT" : " Development"
17+ "ASPNETCORE_ENVIRONMENT" : " Development" ,
18+ "ASPNETCORE_URLS" : " http://*:8080"
1819 }
1920 },
2021 "IIS Express" : {
Original file line number Diff line number Diff line change @@ -10,10 +10,30 @@ metadata:
1010 - dotnet
1111 attributes :
1212 alpha.dockerimage-port : 8081
13- # parent:
14- # id: dotnet60
15- # registryUrl: "https://registry.devfile.io"
13+ starterProjects :
14+ - name : s2i-example
15+ git :
16+ checkoutFrom :
17+ remote : origin
18+ revision : dotnet-6.0
19+ remotes :
20+ origin : https://github.com/redhat-developer/s2i-dotnetcore-ex
21+ subDir : app
1622components :
23+ - name : dotnet
24+ container :
25+ image : registry.access.redhat.com/ubi8/dotnet-60:6.0
26+ mountSources : true
27+ env :
28+ - name : CONFIGURATION
29+ value : Debug
30+ - name : STARTUP_PROJECT
31+ value : app.csproj
32+ - name : ASPNETCORE_ENVIRONMENT
33+ value : Development
34+ endpoints :
35+ - name : http-8080
36+ targetPort : 8080
1737 - name : outerloop-build
1838 image :
1939 imageName : " dotnet-image:latest"
@@ -28,6 +48,23 @@ components:
2848 kubernetes :
2949 uri : kubernetes/service.yaml
3050commands :
51+ - id : build
52+ exec :
53+ workingDir : ${PROJECT_SOURCE}
54+ commandLine : kill $(pidof dotnet); dotnet build -c $CONFIGURATION $STARTUP_PROJECT /p:UseSharedCompilation=false
55+ component : dotnet
56+ group :
57+ isDefault : true
58+ kind : build
59+
60+ - id : run
61+ exec :
62+ workingDir : ${PROJECT_SOURCE}
63+ commandLine : dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT --no-launch-profile
64+ component : dotnet
65+ group :
66+ isDefault : true
67+ kind : run
3168 - id : build-image
3269 apply :
3370 component : outerloop-build
You can’t perform that action at this time.
0 commit comments