Marketing API devspaces
This commit is contained in:
parent
89a0695779
commit
1723771030
18
src/Services/Marketing/Marketing.API/Dockerfile.develop
Normal file
18
src/Services/Marketing/Marketing.API/Dockerfile.develop
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM microsoft/dotnet:2.2-sdk
|
||||||
|
ARG BUILD_CONFIGURATION=Debug
|
||||||
|
ENV ASPNETCORE_ENVIRONMENT=Development
|
||||||
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["src/Services/Marketing/Marketing.API/Marketing.API.csproj", "src/Services/Marketing/Marketing.API/"]
|
||||||
|
COPY ["src/BuildingBlocks/EventBus/EventBus/EventBus.csproj", "src/BuildingBlocks/EventBus/EventBus/"]
|
||||||
|
COPY ["src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "src/BuildingBlocks/EventBus/EventBusRabbitMQ/"]
|
||||||
|
COPY ["src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "src/BuildingBlocks/EventBus/EventBusServiceBus/"]
|
||||||
|
COPY ["src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "src/BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
|
||||||
|
RUN dotnet restore src/Services/Marketing/Marketing.API/Marketing.API.csproj -nowarn:msb3202,nu1503
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/src/Services/Marketing/Marketing.API"
|
||||||
|
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]
|
54
src/Services/Marketing/Marketing.API/azds.yaml
Normal file
54
src/Services/Marketing/Marketing.API/azds.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
kind: helm-release
|
||||||
|
apiVersion: 1.1
|
||||||
|
build:
|
||||||
|
context: ..\..\..\..
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
install:
|
||||||
|
chart: ../../../../k8s/helm/marketing-api
|
||||||
|
set:
|
||||||
|
replicaCount: 1
|
||||||
|
image:
|
||||||
|
tag: $(tag)
|
||||||
|
pullPolicy: Never
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: traefik-azds
|
||||||
|
hosts:
|
||||||
|
# This expands to [space.s.]identity.<guid>.<region>.aksapp.io
|
||||||
|
- $(spacePrefix)marketing-api$(hostSuffix)
|
||||||
|
values:
|
||||||
|
- values.dev.yaml?
|
||||||
|
- secrets.dev.yaml?
|
||||||
|
- inf.yaml
|
||||||
|
- app.yaml
|
||||||
|
configurations:
|
||||||
|
develop:
|
||||||
|
build:
|
||||||
|
useGitIgnore: true
|
||||||
|
dockerfile: Dockerfile.develop
|
||||||
|
args:
|
||||||
|
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION:-Debug}
|
||||||
|
container:
|
||||||
|
sync:
|
||||||
|
- '**/Pages/**'
|
||||||
|
- '**/Views/**'
|
||||||
|
- '**/wwwroot/**'
|
||||||
|
- '!**/*.{sln,csproj}'
|
||||||
|
command:
|
||||||
|
- dotnet
|
||||||
|
- run
|
||||||
|
- --no-restore
|
||||||
|
- --no-build
|
||||||
|
- --no-launch-profile
|
||||||
|
- -c
|
||||||
|
- ${BUILD_CONFIGURATION:-Debug}
|
||||||
|
iterate:
|
||||||
|
processesToKill:
|
||||||
|
- dotnet
|
||||||
|
- vsdbg
|
||||||
|
buildCommands:
|
||||||
|
- - dotnet
|
||||||
|
- build
|
||||||
|
- --no-restore
|
||||||
|
- -c
|
||||||
|
- ${BUILD_CONFIGURATION:-Debug}
|
@ -41,6 +41,11 @@ Write-Host "Copying app.yaml and inf.yaml to Locations API" -ForegroundColor Yel
|
|||||||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Location\Locations.API" -Force
|
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Location\Locations.API" -Force
|
||||||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Location\Locations.API" -Force
|
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Location\Locations.API" -Force
|
||||||
|
|
||||||
|
Write-Host "Copying app.yaml and inf.yaml to Marketing API" -ForegroundColor Yellow
|
||||||
|
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Marketing\Marketing.API" -Force
|
||||||
|
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Marketing\Marketing.API" -Force
|
||||||
|
|
||||||
|
|
||||||
Write-Host "Copying app.yaml and inf.yaml to WebMVC" -ForegroundColor Yellow
|
Write-Host "Copying app.yaml and inf.yaml to WebMVC" -ForegroundColor Yellow
|
||||||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Web\WebMVC" -Force
|
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Web\WebMVC" -Force
|
||||||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Web\WebMVC" -Force
|
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Web\WebMVC" -Force
|
||||||
|
Loading…
x
Reference in New Issue
Block a user