Skip to content

Commit e310a52

Browse files
committed
Devspaces files for Apigateways, basket, ordering, aggregators
1 parent 8203305 commit e310a52

24 files changed

Lines changed: 394 additions & 257 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM microsoft/dotnet:2.2-sdk
2+
ARG BUILD_CONFIGURATION=Debug
3+
ENV ASPNETCORE_ENVIRONMENT=Development
4+
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
5+
EXPOSE 80
6+
7+
WORKDIR /src
8+
COPY ["src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj", "src/ApiGateways/ApiGw-Base/"]
9+
RUN dotnet restore "src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj"
10+
COPY . .
11+
WORKDIR "/src/src/ApiGateways/ApiGw-Base"
12+
RUN dotnet build --no-restore "OcelotApiGw.csproj" -c $BUILD_CONFIGURATION
13+
14+
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
kind: helm-release
2+
apiVersion: 1.1
3+
build:
4+
context: ..\..\..\..\
5+
dockerfile: ..\..\..\..\ApiGateways\ApiGw-Base\Dockerfile
6+
install:
7+
chart: ../../../../k8s/helm/apigwwm
8+
set:
9+
replicaCount: 1
10+
image:
11+
tag: $(tag)
12+
pullPolicy: Never
13+
ingress:
14+
annotations:
15+
kubernetes.io/ingress.class: traefik-azds
16+
hosts:
17+
# This expands to [space.s.]webmvc.<guid>.<region>.aksapp.io
18+
- $(spacePrefix)apigwwm$(hostSuffix)
19+
values:
20+
- values.dev.yaml?
21+
- secrets.dev.yaml?
22+
- inf.yaml
23+
- app.yaml
24+
configurations:
25+
develop:
26+
build:
27+
useGitIgnore: true
28+
dockerfile: ..\..\..\ApiGateways\ApiGw-Base\Dockerfile.develop
29+
args:
30+
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION:-Debug}
31+
container:
32+
sync:
33+
- '**/Pages/**'
34+
- '**/Views/**'
35+
- '**/wwwroot/**'
36+
- '!**/*.{sln,csproj}'
37+
command: [dotnet, run, --no-restore, --no-build, --no-launch-profile, -c, "${BUILD_CONFIGURATION:-Debug}"]
38+
iterate:
39+
processesToKill: [dotnet, vsdbg]
40+
buildCommands:
41+
- [dotnet, build, --no-restore, -c, "${BUILD_CONFIGURATION:-Debug}"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ocelot:
2+
configPath: /src/src/ApiGateways/ApiGw-Base/configuration
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM microsoft/dotnet:2.2.100-sdk
1+
FROM microsoft/dotnet:2.2-sdk
2+
ARG BUILD_CONFIGURATION=Debug
23
ENV ASPNETCORE_ENVIRONMENT=Development
34
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
4-
55
EXPOSE 80
66

77
WORKDIR /src
@@ -12,4 +12,4 @@ COPY . .
1212
WORKDIR "/src/src/ApiGateways/Mobile.Bff.Shopping/aggregator"
1313
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
1414

15-
CMD ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile"]
15+
CMD ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]]
Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,52 @@
11
kind: helm-release
2-
apiVersion: 1.0
2+
apiVersion: 1.1
33
build:
44
context: ..\..\..\..
55
dockerfile: Dockerfile
66
install:
7-
chart: ../../../../k8s/helm/apigwms
8-
values:
9-
- values.dev.yaml?
10-
- secrets.dev.yaml?
11-
- ..\..\..\..\k8s\helm\app.yaml
12-
- ..\..\..\..\k8s\helm\inf.yaml
7+
chart: ../../../../k8s/helm/mobileshoppingagg
138
set:
149
image:
1510
tag: $(tag)
1611
pullPolicy: Never
17-
inf:
18-
k8s:
19-
dns: "$(spacePrefix)apigwms$(hostSuffix)"
20-
disableProbes: true
2112
ingress:
13+
annotations:
14+
kubernetes.io/ingress.class: traefik-azds
2215
hosts:
2316
# This expands to [space.s.]apigwms.<guid>.<region>.aksapp.io
24-
- $(spacePrefix)apigwms$(hostSuffix)
17+
- $(spacePrefix)mobileshoppingagg$(hostSuffix)
18+
values:
19+
- values.dev.yaml?
20+
- secrets.dev.yaml?
21+
- app.yaml
22+
- inf.yaml
2523
configurations:
2624
develop:
2725
build:
28-
dockerfile: Dockerfile.develop
2926
useGitIgnore: true
27+
dockerfile: Dockerfile.develop
3028
container:
3129
syncTarget: /src
3230
sync:
33-
- "**/Pages/**"
34-
- "**/Views/**"
35-
- "**/wwwroot/**"
36-
- "!**/*.{sln,csproj}"
37-
command: [dotnet, run, --no-restore, --no-build, --no-launch-profile, -c, "${Configuration:-Debug}"]
31+
- '**/Pages/**'
32+
- '**/Views/**'
33+
- '**/wwwroot/**'
34+
- '!**/*.{sln,csproj}'
35+
command:
36+
- dotnet
37+
- run
38+
- --no-restore
39+
- --no-build
40+
- --no-launch-profile
41+
- -c
42+
- ${Configuration:-Debug}
3843
iterate:
39-
processesToKill: [dotnet, vsdbg]
44+
processesToKill:
45+
- dotnet
46+
- vsdbg
4047
buildCommands:
41-
- [dotnet, build, --no-restore, -c, "${Configuration:-Debug}"]
48+
- - dotnet
49+
- build
50+
- --no-restore
51+
- -c
52+
- ${Configuration:-Debug}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
kind: helm-release
2+
apiVersion: 1.1
3+
build:
4+
context: ..\..\..\..\
5+
dockerfile: ..\..\..\..\ApiGateways\ApiGw-Base\Dockerfile
6+
install:
7+
chart: ../../../../k8s/helm/apigwms
8+
set:
9+
replicaCount: 1
10+
image:
11+
tag: $(tag)
12+
pullPolicy: Never
13+
ingress:
14+
annotations:
15+
kubernetes.io/ingress.class: traefik-azds
16+
hosts:
17+
# This expands to [space.s.]webmvc.<guid>.<region>.aksapp.io
18+
- $(spacePrefix)apigwms$(hostSuffix)
19+
values:
20+
- values.dev.yaml?
21+
- secrets.dev.yaml?
22+
- inf.yaml
23+
- app.yaml
24+
configurations:
25+
develop:
26+
build:
27+
useGitIgnore: true
28+
dockerfile: ..\..\..\ApiGateways\ApiGw-Base\Dockerfile.develop
29+
args:
30+
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION:-Debug}
31+
container:
32+
sync:
33+
- '**/Pages/**'
34+
- '**/Views/**'
35+
- '**/wwwroot/**'
36+
- '!**/*.{sln,csproj}'
37+
command: [dotnet, run, --no-restore, --no-build, --no-launch-profile, -c, "${BUILD_CONFIGURATION:-Debug}"]
38+
iterate:
39+
processesToKill: [dotnet, vsdbg]
40+
buildCommands:
41+
- [dotnet, build, --no-restore, -c, "${BUILD_CONFIGURATION:-Debug}"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ocelot:
2+
configPath: /src/src/ApiGateways/ApiGw-Base/configuration
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
kind: helm-release
2+
apiVersion: 1.1
3+
build:
4+
context: ..\..\..\..\
5+
dockerfile: ..\..\..\..\ApiGateways\ApiGw-Base\Dockerfile
6+
install:
7+
chart: ../../../../k8s/helm/apigwmm
8+
set:
9+
replicaCount: 1
10+
image:
11+
tag: $(tag)
12+
pullPolicy: Never
13+
ingress:
14+
annotations:
15+
kubernetes.io/ingress.class: traefik-azds
16+
hosts:
17+
# This expands to [space.s.]webmvc.<guid>.<region>.aksapp.io
18+
- $(spacePrefix)apigwmm$(hostSuffix)
19+
values:
20+
- values.dev.yaml?
21+
- secrets.dev.yaml?
22+
- inf.yaml
23+
- app.yaml
24+
configurations:
25+
develop:
26+
build:
27+
useGitIgnore: true
28+
dockerfile: ..\..\..\ApiGateways\ApiGw-Base\Dockerfile.develop
29+
args:
30+
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION:-Debug}
31+
container:
32+
sync:
33+
- '**/Pages/**'
34+
- '**/Views/**'
35+
- '**/wwwroot/**'
36+
- '!**/*.{sln,csproj}'
37+
command: [dotnet, run, --no-restore, --no-build, --no-launch-profile, -c, "${BUILD_CONFIGURATION:-Debug}"]
38+
iterate:
39+
processesToKill: [dotnet, vsdbg]
40+
buildCommands:
41+
- [dotnet, build, --no-restore, -c, "${BUILD_CONFIGURATION:-Debug}"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ocelot:
2+
configPath: /src/src/ApiGateways/ApiGw-Base/configuration
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM microsoft/dotnet:2.2-sdk
2+
ARG BUILD_CONFIGURATION=Debug
3+
ENV ASPNETCORE_ENVIRONMENT=Development
4+
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
5+
EXPOSE 80
6+
7+
WORKDIR /src
8+
COPY ["src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj", "src/ApiGateways/Web.Bff.Shopping/aggregator/"]
9+
10+
RUN dotnet restore src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj -nowarn:msb3202,nu1503
11+
COPY . .
12+
WORKDIR "/src/src/ApiGateways/Web.Bff.Shopping/aggregator"
13+
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
14+
15+
CMD ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]]

0 commit comments

Comments
 (0)