Skip to content

Commit 91d06af

Browse files
committed
starting deploys to devspaces
1 parent fbf89f8 commit 91d06af

29 files changed

Lines changed: 498 additions & 284 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.dockerignore
2+
.git
3+
.gitignore
4+
.vs
5+
.vscode
6+
**/*.*proj.user
7+
**/azds.yaml
8+
**/bin
9+
**/charts
10+
**/Dockerfile
11+
**/Dockerfile.develop
12+
**/obj
13+
**/secrets.dev.yaml
14+
**/values.dev.yaml
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM microsoft/dotnet:2.1-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+
9+
COPY ["src/BuildingBlocks/EventBus/EventBus/EventBus.csproj", "src/BuildingBlocks/EventBus/EventBus/"]
10+
COPY ["src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "src/BuildingBlocks/EventBus/EventBusRabbitMQ/"]
11+
COPY ["src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "src/BuildingBlocks/EventBus/EventBusServiceBus/"]
12+
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/Microsoft.AspNetCore.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/"]
13+
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/Microsoft.Extensions.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/"]
14+
COPY ["src/Services/Basket/Basket.API/Basket.API.csproj", "src/Services/Basket/Basket.API/"]
15+
16+
RUN dotnet restore src/Services/Basket/Basket.API/Basket.API.csproj -nowarn:msb3202,nu1503
17+
COPY . .
18+
WORKDIR /src/src/Services/Basket/Basket.API
19+
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
20+
21+
CMD ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile"]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This heml values file defines app-based settings
2+
# Charts use those values, so this file **MUST** be included in all chart releases
3+
4+
5+
app: # app global settings
6+
name: "my-eshop" # Override for custom app name
7+
ingress: # ingress related settings
8+
entries:
9+
basket: basket-api # ingress entry for basket api
10+
catalog: catalog-api # ingress entry for catalog api
11+
ordering: ordering-api # ingress entry for ordering api
12+
identity: identity # ingress entry for identity api
13+
mvc: webmvc # ingress entry for web mvc
14+
spa: "" # ingress entry for web spa
15+
status: webstatus # ingress entry for web status
16+
webshoppingapigw: webshoppingapigw # ingress entry for web shopping Agw
17+
webmarketingapigw: webmarketingapigw # ingress entry for web mkg Agw
18+
mobilemarketingapigw: mobilemarketingapigw # ingress entry for mobile mkg Agw
19+
mobileshoppingapigw: mobileshoppingapigw # ingress entry for mobile shopping Agw
20+
webshoppingagg: webshoppingagg # ingress entry for web shopping aggregator
21+
mobileshoppingagg: mobileshoppingagg # ingress entry for mobile shopping aggregator
22+
payment: payment-api # ingress entry for payment api
23+
locations: locations-api # ingress entry for locations api
24+
marketing: marketing-api # ingress entry for marketing api
25+
svc:
26+
basket: basket # service name for basket api
27+
catalog: catalog # service name for catalog api
28+
ordering: ordering # service name for ordering api
29+
orderingbackgroundtasks: orderingbackgroundtasks # service name for orderingbackgroundtasks
30+
orderingsignalrhub: orderingsignalrhub # service name for orderingsignalrhub
31+
identity: identity # service name for identity api
32+
mvc: webmvc # service name for web mvc
33+
spa: webspa # service name for web spa
34+
status: webstatus # service name for web status
35+
webshoppingapigw: webshoppingapigw # service name for web shopping Agw
36+
webmarketingapigw: webmarketingapigw # service name for web mkg Agw
37+
mobilemarketingapigw: mobilemarketingapigw # service name for mobile mkg Agw
38+
mobileshoppingapigw: mobileshoppingapigw # service name for mobile shopping Agw
39+
webshoppingagg: webshoppingagg # service name for web shopping aggregator
40+
mobileshoppingagg: mobileshoppingagg # service name for mobile shopping aggregator
41+
payment: payment # service name for payment api
42+
locations: locations # service name for locations api
43+
marketing: marketing # service name for marketing ap
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
kind: helm-release
2+
apiVersion: 1.0
3+
build:
4+
context: ..\..\..\..
5+
dockerfile: Dockerfile
6+
install:
7+
chart: ../../../../k8s/helm/basket-api
8+
values:
9+
- values.dev.yaml?
10+
- secrets.dev.yaml?
11+
- inf.yaml
12+
- app.yaml
13+
set:
14+
replicaCount: 1
15+
image:
16+
tag: $(tag)
17+
pullPolicy: Never
18+
ingress:
19+
hosts:
20+
# This expands to [space.s.]basketapi.<guid>.<region>.aksapp.io
21+
- $(spacePrefix)basketapi$(hostSuffix)
22+
configurations:
23+
develop:
24+
build:
25+
dockerfile: Dockerfile.develop
26+
useGitIgnore: true
27+
args:
28+
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION:-Debug}
29+
container:
30+
sync:
31+
- "**/Pages/**"
32+
- "**/Views/**"
33+
- "**/wwwroot/**"
34+
- "!**/*.{sln,csproj}"
35+
command: [dotnet, run, --no-restore, --no-build, --no-launch-profile, -c, "${BUILD_CONFIGURATION:-Debug}"]
36+
iterate:
37+
processesToKill: [dotnet, vsdbg]
38+
buildCommands:
39+
- [dotnet, build, --no-restore, -c, "${BUILD_CONFIGURATION:-Debug}"]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This heml values file defines all infrastructure used by eShopOnContainers.
2+
# It is used on all charts, so ** MUST BE INCLUDED ** on every deployment
3+
4+
inf:
5+
redis: # inf.redis defines the redis' connection strings
6+
basket:
7+
svc: basket-data # Name of k8s svc for basket redis
8+
constr: basket-data # Connection string to Redis used by Basket API
9+
eventbus:
10+
svc: rabbitmq # Name of k8s svc for rabbitmq
11+
constr: rabbitmq # Event bus connection string
12+
useAzure: false # true if use Azure Service Bus. False if RabbitMQ
13+
appinsights:
14+
key: "" # App insights to use
15+
k8s: {}
16+
misc: # inf.misc contains miscellaneous configuration related to infrastructure
17+
useLoadTest: false # If running under loading test or not
18+
useAzureStorage: false # If catalog api uses azure storage or not

src/Services/Catalog/Catalog.API/Dockerfile.develop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/Mic
1717
COPY ["src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "src/BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
1818
COPY ["src/Services/Catalog/Catalog.API/Catalog.API.csproj", "src/Services/Catalog/Catalog.API/"]
1919

20-
RUN dotnet restore -nowarn:msb3202,nu1503
20+
RUN dotnet restore src/Services/Catalog/Catalog.API/Catalog.API.csproj -nowarn:msb3202,nu1503
2121
COPY . .
2222
WORKDIR "/src/src/Services/Catalog/Catalog.API"
2323
RUN dotnet build "Catalog.API.csproj"

src/Services/Catalog/Catalog.API/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"Azure Dev Spaces": {
2828
"commandName": "AzureDevSpaces",
2929
"launchBrowser": true,
30-
"resourceGroup": "eshoptestedu",
31-
"aksName": "eshoptestedu",
30+
"resourceGroup": "edu-devspaces3",
31+
"aksName": "edu-devspaces3",
3232
"subscriptionId": "e3035ac1-c06c-4daf-8939-57b3c5f1f759"
3333
}
3434
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
app: # app global settings
2+
name: "my-eshop" # Override for custom app name
3+
ingress: # ingress related settings
4+
entries:
5+
basket: basket-api # ingress entry for basket api
6+
catalog: catalog-api # ingress entry for catalog api
7+
ordering: ordering-api # ingress entry for ordering api
8+
identity: identity # ingress entry for identity api
9+
mvc: webmvc # ingress entry for web mvc
10+
spa: "" # ingress entry for web spa
11+
status: webstatus # ingress entry for web status
12+
webshoppingapigw: webshoppingapigw # ingress entry for web shopping Agw
13+
webmarketingapigw: webmarketingapigw # ingress entry for web mkg Agw
14+
mobilemarketingapigw: mobilemarketingapigw # ingress entry for mobile mkg Agw
15+
mobileshoppingapigw: mobileshoppingapigw # ingress entry for mobile shopping Agw
16+
webshoppingagg: webshoppingagg # ingress entry for web shopping aggregator
17+
mobileshoppingagg: mobileshoppingagg # ingress entry for mobile shopping aggregator
18+
payment: payment-api # ingress entry for payment api
19+
locations: locations-api # ingress entry for locations api
20+
marketing: marketing-api # ingress entry for marketing api
21+
svc:
22+
basket: basket # service name for basket api
23+
catalog: catalog # service name for catalog api
24+
ordering: ordering # service name for ordering api
25+
orderingbackgroundtasks: orderingbackgroundtasks # service name for orderingbackgroundtasks
26+
orderingsignalrhub: orderingsignalrhub # service name for orderingsignalrhub
27+
identity: identity # service name for identity api
28+
mvc: webmvc # service name for web mvc
29+
spa: webspa # service name for web spa
30+
status: webstatus # service name for web status
31+
webshoppingapigw: webshoppingapigw # service name for web shopping Agw
32+
webmarketingapigw: webmarketingapigw # service name for web mkg Agw
33+
mobilemarketingapigw: mobilemarketingapigw # service name for mobile mkg Agw
34+
mobileshoppingapigw: mobileshoppingapigw # service name for mobile shopping Agw
35+
webshoppingagg: webshoppingagg # service name for web shopping aggregator
36+
mobileshoppingagg: mobileshoppingagg # service name for mobile shopping aggregator
37+
payment: payment # service name for payment api
38+
locations: locations # service name for locations api
39+
marketing: marketing # service name for marketing api

src/Services/Catalog/Catalog.API/azds.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,24 @@ build:
44
context: ..\..\..\..
55
dockerfile: Dockerfile
66
install:
7-
chart: charts/catalogapi
7+
chart: ../../../../k8s/helm/catalog-api
88
values:
99
- values.dev.yaml?
1010
- secrets.dev.yaml?
11+
- inf.yaml
12+
- app.yaml
1113
set:
1214
image:
1315
tag: $(tag)
1416
pullPolicy: Never
17+
inf:
18+
k8s:
19+
dns: "$(spacePrefix)basketapi$(hostSuffix)"
1520
disableProbes: true
1621
ingress:
1722
hosts:
1823
# This expands to [space.s.]catalogapi.<guid>.<region>.aksapp.io
19-
- $(spacePrefix)catalogapi$(hostSuffix)
24+
- $(spacePrefix)basketapi$(hostSuffix)
2025
configurations:
2126
develop:
2227
build:

src/Services/Catalog/Catalog.API/charts/catalogapi/.helmignore

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)