Skip to content

Commit 1723771

Browse files
committed
Marketing API devspaces
1 parent 89a0695 commit 1723771

3 files changed

Lines changed: 77 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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/Services/Marketing/Marketing.API/Marketing.API.csproj", "src/Services/Marketing/Marketing.API/"]
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/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "src/BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
13+
RUN dotnet restore src/Services/Marketing/Marketing.API/Marketing.API.csproj -nowarn:msb3202,nu1503
14+
COPY . .
15+
WORKDIR "/src/src/Services/Marketing/Marketing.API"
16+
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
17+
18+
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
kind: helm-release
2+
apiVersion: 1.1
3+
build:
4+
context: ..\..\..\..
5+
dockerfile: Dockerfile
6+
install:
7+
chart: ../../../../k8s/helm/marketing-api
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.]identity.<guid>.<region>.aksapp.io
18+
- $(spacePrefix)marketing-api$(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: 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:
38+
- dotnet
39+
- run
40+
- --no-restore
41+
- --no-build
42+
- --no-launch-profile
43+
- -c
44+
- ${BUILD_CONFIGURATION:-Debug}
45+
iterate:
46+
processesToKill:
47+
- dotnet
48+
- vsdbg
49+
buildCommands:
50+
- - dotnet
51+
- build
52+
- --no-restore
53+
- -c
54+
- ${BUILD_CONFIGURATION:-Debug}

src/prepare-devspaces.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Write-Host "Copying app.yaml and inf.yaml to Locations API" -ForegroundColor Yel
4141
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Location\Locations.API" -Force
4242
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Location\Locations.API" -Force
4343

44+
Write-Host "Copying app.yaml and inf.yaml to Marketing API" -ForegroundColor Yellow
45+
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Marketing\Marketing.API" -Force
46+
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Marketing\Marketing.API" -Force
47+
48+
4449
Write-Host "Copying app.yaml and inf.yaml to WebMVC" -ForegroundColor Yellow
4550
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Web\WebMVC" -Force
4651
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Web\WebMVC" -Force

0 commit comments

Comments
 (0)