@ -1,55 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/mobileshoppingagg | |||
set: | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
# This expands to [space.s.]apigwms.<guid>.<region>.aksapp.io | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(hostSuffix) | |||
values: | |||
- values.dev.yaml? | |||
- secrets.dev.yaml? | |||
- app.yaml | |||
- inf.yaml | |||
configurations: | |||
develop: | |||
build: | |||
useGitIgnore: true | |||
dockerfile: Dockerfile.develop | |||
container: | |||
syncTarget: /src | |||
sync: | |||
- '**/Pages/**' | |||
- '**/Views/**' | |||
- '**/wwwroot/**' | |||
- '!**/*.{sln,csproj}' | |||
command: | |||
- dotnet | |||
- run | |||
- --no-restore | |||
- --no-build | |||
- --no-launch-profile | |||
- -c | |||
- ${Configuration:-Debug} | |||
iterate: | |||
processesToKill: | |||
- dotnet | |||
- vsdbg | |||
buildCommands: | |||
- - dotnet | |||
- build | |||
- --no-restore | |||
- -c | |||
- ${Configuration:-Debug} |
@ -1,55 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/webshoppingagg | |||
set: | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
# This expands to [space.s.]apigwms.<guid>.<region>.aksapp.io | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(hostSuffix) | |||
values: | |||
- values.dev.yaml? | |||
- secrets.dev.yaml? | |||
- app.yaml | |||
- inf.yaml | |||
configurations: | |||
develop: | |||
build: | |||
useGitIgnore: true | |||
dockerfile: Dockerfile.develop | |||
container: | |||
syncTarget: /src | |||
sync: | |||
- '**/Pages/**' | |||
- '**/Views/**' | |||
- '**/wwwroot/**' | |||
- '!**/*.{sln,csproj}' | |||
command: | |||
- dotnet | |||
- run | |||
- --no-restore | |||
- --no-build | |||
- --no-launch-profile | |||
- -c | |||
- ${Configuration:-Debug} | |||
iterate: | |||
processesToKill: | |||
- dotnet | |||
- vsdbg | |||
buildCommands: | |||
- - dotnet | |||
- build | |||
- --no-restore | |||
- -c | |||
- ${Configuration:-Debug} |
@ -1,11 +0,0 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net7.0</TargetFramework> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" /> | |||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" /> | |||
<PackageReference Include="Microsoft.Extensions.Http" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,22 +0,0 @@ | |||
namespace Devspaces.Support; | |||
public class DevspacesMessageHandler : DelegatingHandler | |||
{ | |||
private const string DevspacesHeaderName = "azds-route-as"; | |||
private readonly IHttpContextAccessor _httpContextAccessor; | |||
public DevspacesMessageHandler(IHttpContextAccessor httpContextAccessor) | |||
{ | |||
_httpContextAccessor = httpContextAccessor; | |||
} | |||
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) | |||
{ | |||
var req = _httpContextAccessor.HttpContext.Request; | |||
if (req.Headers.ContainsKey(DevspacesHeaderName)) | |||
{ | |||
request.Headers.Add(DevspacesHeaderName, req.Headers[DevspacesHeaderName] as IEnumerable<string>); | |||
} | |||
return base.SendAsync(request, cancellationToken); | |||
} | |||
} |
@ -1,6 +0,0 @@ | |||
global using Microsoft.AspNetCore.Http; | |||
global using Microsoft.Extensions.DependencyInjection; | |||
global using System.Collections.Generic; | |||
global using System.Net.Http; | |||
global using System.Threading.Tasks; | |||
global using System.Threading; |
@ -1,10 +0,0 @@ | |||
namespace Devspaces.Support; | |||
public static class HttpClientBuilderDevspacesExtensions | |||
{ | |||
public static IHttpClientBuilder AddDevspacesSupport(this IHttpClientBuilder builder) | |||
{ | |||
builder.AddHttpMessageHandler<DevspacesMessageHandler>(); | |||
return builder; | |||
} | |||
} |
@ -1,10 +0,0 @@ | |||
namespace Devspaces.Support; | |||
public static class ServiceCollectionDevspacesExtensions | |||
{ | |||
public static IServiceCollection AddDevspaces(this IServiceCollection services) | |||
{ | |||
services.AddTransient<DevspacesMessageHandler>(); | |||
return services; | |||
} | |||
} |
@ -1,56 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/basket-api | |||
set: | |||
replicaCount: 1 | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(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} |
@ -1,54 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/catalog-api | |||
set: | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(hostSuffix) | |||
values: | |||
- values.dev.yaml? | |||
- secrets.dev.yaml? | |||
- inf.yaml | |||
- app.yaml | |||
configurations: | |||
develop: | |||
build: | |||
useGitIgnore: true | |||
dockerfile: Dockerfile.develop | |||
container: | |||
syncTarget: /src | |||
sync: | |||
- '**/Pages/**' | |||
- '**/Views/**' | |||
- '**/wwwroot/**' | |||
- '!**/*.{sln,csproj}' | |||
command: | |||
- dotnet | |||
- run | |||
- --no-restore | |||
- --no-build | |||
- --no-launch-profile | |||
- -c | |||
- ${Configuration:-Debug} | |||
iterate: | |||
processesToKill: | |||
- dotnet | |||
- vsdbg | |||
buildCommands: | |||
- - dotnet | |||
- build | |||
- --no-restore | |||
- -c | |||
- ${Configuration:-Debug} |
@ -1,56 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/identity-api | |||
set: | |||
replicaCount: 1 | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(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} |
@ -1,56 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/ordering-api | |||
set: | |||
replicaCount: 1 | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(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} |
@ -1,56 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/ordering-signalrhub | |||
set: | |||
replicaCount: 1 | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(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} |
@ -1,56 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/payment-api | |||
set: | |||
replicaCount: 1 | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(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} |
@ -1,54 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\.. | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../../k8s/helm/webhooks-api | |||
set: | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(hostSuffix) | |||
values: | |||
- values.dev.yaml? | |||
- secrets.dev.yaml? | |||
- inf.yaml | |||
- app.yaml | |||
configurations: | |||
develop: | |||
build: | |||
useGitIgnore: true | |||
dockerfile: Dockerfile.develop | |||
container: | |||
syncTarget: /src | |||
sync: | |||
- '**/Pages/**' | |||
- '**/Views/**' | |||
- '**/wwwroot/**' | |||
- '!**/*.{sln,csproj}' | |||
command: | |||
- dotnet | |||
- run | |||
- --no-restore | |||
- --no-build | |||
- --no-launch-profile | |||
- -c | |||
- ${Configuration:-Debug} | |||
iterate: | |||
processesToKill: | |||
- dotnet | |||
- vsdbg | |||
buildCommands: | |||
- - dotnet | |||
- build | |||
- --no-restore | |||
- -c | |||
- ${Configuration:-Debug} |
@ -1,43 +0,0 @@ | |||
kind: helm-release | |||
apiVersion: 1.1 | |||
build: | |||
context: ..\..\..\ | |||
dockerfile: Dockerfile | |||
install: | |||
chart: ../../../k8s/helm/webmvc | |||
set: | |||
replicaCount: 1 | |||
image: | |||
tag: $(tag) | |||
pullPolicy: Never | |||
ingress: | |||
annotations: | |||
kubernetes.io/ingress.class: traefik-azds | |||
hosts: | |||
- $(spacePrefix)eshop$(hostSuffix) | |||
inf: | |||
k8s: | |||
dns: $(spacePrefix)eshop$(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}"] |
@ -1,57 +0,0 @@ | |||
# This script just copies app.yaml and inf.yaml files to all devspaces projects. | |||
# This is to workaround issue #56 - https://github.com/Azure/dev-spaces/issues/56 | |||
Write-Host "Copying app.yaml and inf.yaml to Mobile.Bff.Shopping" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\ApiGateways\Mobile.Bff.Shopping\apigw" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\ApiGateways\Mobile.Bff.Shopping\apigw" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Web.Bff.Shopping" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\ApiGateways\Web.Bff.Shopping\apigw" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\ApiGateways\Web.Bff.Shopping\apigw" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Mobile.Bff Shopping Aggregator" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\ApiGateways\Mobile.Bff.Shopping\aggregator" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\ApiGateways\Mobile.Bff.Shopping\aggregator" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Web.Bff Shopping Aggregator" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\ApiGateways\Web.Bff.Shopping\aggregator" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\ApiGateways\Web.Bff.Shopping\aggregator" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Basket API" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Basket\Basket.API" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Basket\Basket.API" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Catalog API" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Catalog\Catalog.API" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Catalog\Catalog.API" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Identity API" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Identity\Identity.API" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Identity\Identity.API" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Ordering API" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Ordering\Ordering.API" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Ordering\Ordering.API" -Force | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Ordering\Ordering.SignalrHub" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Ordering\Ordering.SignalrHub" -Force | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Ordering\Ordering.BackgroundTasks" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Ordering\Ordering.BackgroundTasks" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Payment API" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Payment\Payment.API" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Payment\Payment.API" -Force | |||
Write-Host "Copying app.yaml and inf.yaml to Webhooks API" -ForegroundColor Yellow | |||
Copy-Item "..\k8s\helm\app.yaml" -Destination ".\Services\Webhooks\Webhooks.API" -Force | |||
Copy-Item "..\k8s\helm\inf.yaml" -Destination ".\Services\Webhooks\Webhooks.API" -Force | |||
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\inf.yaml" -Destination ".\Web\WebMVC" -Force | |||