Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit b4ed1fd

Browse files
committed
use port 8081
Signed-off-by: Stephanie <yangcao@redhat.com>
1 parent cafef6f commit b4ed1fd

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

devfile.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ metadata:
99
tags:
1010
- dotnet
1111
attributes:
12-
alpha.dockerimage-port: 8080
13-
# parent:
14-
# id: dotnet60
15-
# registryUrl: "https://registry.devfile.io"
12+
alpha.dockerimage-port: 8081
1613
components:
1714
- name: outerloop-build
1815
image:

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN dotnet publish -c Release
55

66

77
FROM registry.access.redhat.com/ubi8/dotnet-60:6.0
8-
EXPOSE 8080
8+
EXPOSE 8081
99
COPY --from=builder /opt/app-root/src/bin /opt/app-root/src/bin
1010
WORKDIR /opt/app-root/src/bin/Release/net6.0/publish
11-
CMD ["dotnet", "app.dll"]
11+
CMD ["dotnet", "app.dll", "--urls=http://localhost:8081/"]

kubernetes/service.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ metadata:
66
name: devfile-dotnet-deploy
77
spec:
88
ports:
9-
- name: http-8080
10-
port: 8080
9+
- name: http-8081
10+
port: 8081
1111
protocol: TCP
12-
targetPort: 8080
12+
targetPort: 8081
1313
selector:
1414
app: devfile-dotnet-deploy
1515
type: LoadBalancer

0 commit comments

Comments
 (0)