Browse Source

58299 - Test eShopOnContainers on AKS with Helm charts and Azure Dev Spaces

pull/867/head
Erik Pique 6 years ago
parent
commit
6183b25c72
21 changed files with 539 additions and 124 deletions
  1. +15
    -0
      src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile.develop
  2. +25
    -18
      src/ApiGateways/Web.Bff.Shopping/aggregator/Properties/launchSettings.json
  3. +39
    -0
      src/ApiGateways/Web.Bff.Shopping/aggregator/azds.yaml
  4. +24
    -17
      src/Services/Basket/Basket.API/Properties/launchSettings.json
  5. +24
    -17
      src/Services/Identity/Identity.API/Properties/launchSettings.json
  6. +20
    -0
      src/Services/Location/Locations.API/Dockerfile.develop
  7. +25
    -18
      src/Services/Location/Locations.API/Properties/launchSettings.json
  8. +39
    -0
      src/Services/Location/Locations.API/azds.yaml
  9. +22
    -0
      src/Services/Marketing/Marketing.API/Dockerfile.develop
  10. +25
    -18
      src/Services/Marketing/Marketing.API/Properties/launchSettings.json
  11. +39
    -0
      src/Services/Marketing/Marketing.API/azds.yaml
  12. +24
    -17
      src/Services/Ordering/Ordering.API/Properties/launchSettings.json
  13. +21
    -0
      src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile.develop
  14. +25
    -18
      src/Services/Ordering/Ordering.BackgroundTasks/Properties/launchSettings.json
  15. +39
    -0
      src/Services/Ordering/Ordering.BackgroundTasks/azds.yaml
  16. +18
    -0
      src/Services/Ordering/Ordering.SignalrHub/Dockerfile.develop
  17. +8
    -1
      src/Services/Ordering/Ordering.SignalrHub/Properties/launchSettings.json
  18. +39
    -0
      src/Services/Ordering/Ordering.SignalrHub/azds.yaml
  19. +22
    -0
      src/Services/Payment/Payment.API/Dockerfile.develop
  20. +7
    -0
      src/Services/Payment/Payment.API/Properties/launchSettings.json
  21. +39
    -0
      src/Services/Payment/Payment.API/azds.yaml

+ 15
- 0
src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile.develop View File

@ -0,0 +1,15 @@
FROM microsoft/dotnet:2.1-sdk
ARG BUILD_CONFIGURATION=Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
EXPOSE 80
WORKDIR /src
COPY ["src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj", "src/ApiGateways/Web.Bff.Shopping/aggregator/"]
RUN dotnet restore "src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj"
COPY . .
WORKDIR "/src/src/ApiGateways/Web.Bff.Shopping/aggregator"
RUN dotnet build --no-restore "Web.Shopping.HttpAggregator.csproj" -c $BUILD_CONFIGURATION
ENTRYPOINT ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]

+ 25
- 18
src/ApiGateways/Web.Bff.Shopping/aggregator/Properties/launchSettings.json View File

@ -7,23 +7,30 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"PurchaseForMvc": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:61632/"
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"PurchaseForMvc": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:61632/"
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 39
- 0
src/ApiGateways/Web.Bff.Shopping/aggregator/azds.yaml View File

@ -0,0 +1,39 @@
kind: helm-release
apiVersion: 1.0
build:
context: ..\..\..\..
dockerfile: Dockerfile
install:
chart: ../../../../k8s/helm/apigwws
values:
- values.dev.yaml?
- secrets.dev.yaml?
- ..\..\..\..\k8s\helm\app.yaml?
- ..\..\..\..\k8s\helm\inf.yaml?
set:
replicaCount: 1
image:
tag: $(tag)
pullPolicy: Never
ingress:
hosts:
# This expands to [space.s.]aggregator.<guid>.<region>.aksapp.io
- $(spacePrefix)apigwws(hostSuffix)
configurations:
develop:
build:
dockerfile: Dockerfile.develop
useGitIgnore: true
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}"]

+ 24
- 17
src/Services/Basket/Basket.API/Properties/launchSettings.json View File

@ -7,22 +7,29 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Microsoft.eShopOnContainers.Services.Basket.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:55103/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Microsoft.eShopOnContainers.Services.Basket.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:55103/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 24
- 17
src/Services/Identity/Identity.API/Properties/launchSettings.json View File

@ -7,22 +7,29 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "http://localhost:55105",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"eShopOnContainers.Identity": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:55105",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "http://localhost:55105",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"eShopOnContainers.Identity": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:55105",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 20
- 0
src/Services/Location/Locations.API/Dockerfile.develop View File

@ -0,0 +1,20 @@
FROM microsoft/dotnet:2.1-sdk
ARG BUILD_CONFIGURATION=Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
EXPOSE 80
WORKDIR /src
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/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/Microsoft.AspNetCore.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/Microsoft.Extensions.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/"]
COPY ["src/Services/Location/Locations.API/Locations.API.csproj", "src/Services/Location/Locations.API/"]
RUN dotnet restore "src/Services/Location/Locations.API/Locations.API.csproj"
COPY . .
WORKDIR "/src/src/Services/Location/Locations.API"
RUN dotnet build --no-restore "Locations.API.csproj" -c $BUILD_CONFIGURATION
ENTRYPOINT ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]

+ 25
- 18
src/Services/Location/Locations.API/Properties/launchSettings.json View File

@ -7,23 +7,30 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Locations.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:3279"
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Locations.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:3279"
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 39
- 0
src/Services/Location/Locations.API/azds.yaml View File

@ -0,0 +1,39 @@
kind: helm-release
apiVersion: 1.0
build:
context: ..\..\..\..
dockerfile: Dockerfile
install:
chart: ../../../../k8s/helm/locations-api
values:
- values.dev.yaml?
- secrets.dev.yaml?
- ..\..\..\..\k8s\helm\app.yaml?
- ..\..\..\..\k8s\helm\inf.yaml?
set:
replicaCount: 1
image:
tag: $(tag)
pullPolicy: Never
ingress:
hosts:
# This expands to [space.s.]locationsapi.<guid>.<region>.aksapp.io
- $(spacePrefix)locationsapi$(hostSuffix)
configurations:
develop:
build:
dockerfile: Dockerfile.develop
useGitIgnore: true
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}"]

+ 22
- 0
src/Services/Marketing/Marketing.API/Dockerfile.develop View File

@ -0,0 +1,22 @@
FROM microsoft/dotnet:2.1-sdk
ARG BUILD_CONFIGURATION=Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
EXPOSE 80
WORKDIR /src
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/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/Microsoft.AspNetCore.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks.AzureStorage/Microsoft.Extensions.HealthChecks.AzureStorage.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks.AzureStorage/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/Microsoft.Extensions.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/"]
COPY ["src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "src/BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
COPY ["src/Services/Marketing/Marketing.API/Marketing.API.csproj", "src/Services/Marketing/Marketing.API/"]
RUN dotnet restore "src/Services/Marketing/Marketing.API/Marketing.API.csproj"
COPY . .
WORKDIR "/src/src/Services/Marketing/Marketing.API"
RUN dotnet build --no-restore "Marketing.API.csproj" -c $BUILD_CONFIGURATION
ENTRYPOINT ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]

+ 25
- 18
src/Services/Marketing/Marketing.API/Properties/launchSettings.json View File

@ -7,23 +7,30 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Marketing.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:52059"
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Marketing.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:52059"
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 39
- 0
src/Services/Marketing/Marketing.API/azds.yaml View File

@ -0,0 +1,39 @@
kind: helm-release
apiVersion: 1.0
build:
context: ..\..\..\..
dockerfile: Dockerfile
install:
chart: ../../../../k8s/helm/marketing-api
values:
- values.dev.yaml?
- secrets.dev.yaml?
- ..\..\..\..\k8s\helm\app.yaml?
- ..\..\..\..\k8s\helm\inf.yaml?
set:
replicaCount: 1
image:
tag: $(tag)
pullPolicy: Never
ingress:
hosts:
# This expands to [space.s.]marketingapi.<guid>.<region>.aksapp.io
- $(spacePrefix)marketingapi$(hostSuffix)
configurations:
develop:
build:
dockerfile: Dockerfile.develop
useGitIgnore: true
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}"]

+ 24
- 17
src/Services/Ordering/Ordering.API/Properties/launchSettings.json View File

@ -7,22 +7,29 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "/swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Microsoft.eShopOnContainers.Services.Ordering.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:55102/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "/swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Microsoft.eShopOnContainers.Services.Ordering.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:55102/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 21
- 0
src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile.develop View File

@ -0,0 +1,21 @@
FROM microsoft/dotnet:2.1-sdk
ARG BUILD_CONFIGURATION=Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
EXPOSE 80
WORKDIR /src
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/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/Microsoft.AspNetCore.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks.SqlServer/Microsoft.Extensions.HealthChecks.SqlServer.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks.SqlServer/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/Microsoft.Extensions.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/"]
COPY ["src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj", "src/Services/Ordering/Ordering.BackgroundTasks/"]
RUN dotnet restore "src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj"
COPY . .
WORKDIR "/src/src/Services/Ordering/Ordering.BackgroundTasks"
RUN dotnet build --no-restore "Ordering.BackgroundTasks.csproj" -c $BUILD_CONFIGURATION
ENTRYPOINT ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]

+ 25
- 18
src/Services/Ordering/Ordering.BackgroundTasks/Properties/launchSettings.json View File

@ -7,23 +7,30 @@
"sslPort": 0 "sslPort": 0
} }
}, },
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Ordering.BackgroundTasks": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:5162/"
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Ordering.BackgroundTasks": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:5162/"
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
}
} }
}
} }

+ 39
- 0
src/Services/Ordering/Ordering.BackgroundTasks/azds.yaml View File

@ -0,0 +1,39 @@
kind: helm-release
apiVersion: 1.0
build:
context: ..\..\..\..
dockerfile: Dockerfile
install:
chart: ../../../../k8s/helm/ordering-backgroundtasks
values:
- values.dev.yaml?
- secrets.dev.yaml?
- ..\..\..\..\k8s\helm\app.yaml?
- ..\..\..\..\k8s\helm\inf.yaml?
set:
replicaCount: 1
image:
tag: $(tag)
pullPolicy: Never
ingress:
hosts:
# This expands to [space.s.]orderingbackgroundtasks.<guid>.<region>.aksapp.io
- $(spacePrefix)orderingbackgroundtasks$(hostSuffix)
configurations:
develop:
build:
dockerfile: Dockerfile.develop
useGitIgnore: true
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}"]

+ 18
- 0
src/Services/Ordering/Ordering.SignalrHub/Dockerfile.develop View File

@ -0,0 +1,18 @@
FROM microsoft/dotnet:2.1-sdk
ARG BUILD_CONFIGURATION=Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
EXPOSE 80
WORKDIR /src
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/Services/Ordering/Ordering.SignalrHub/Ordering.SignalrHub.csproj", "src/Services/Ordering/Ordering.SignalrHub/"]
RUN dotnet restore "src/Services/Ordering/Ordering.SignalrHub/Ordering.SignalrHub.csproj"
COPY . .
WORKDIR "/src/src/Services/Ordering/Ordering.SignalrHub"
RUN dotnet build --no-restore "Ordering.SignalrHub.csproj" -c $BUILD_CONFIGURATION
ENTRYPOINT ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]

+ 8
- 1
src/Services/Ordering/Ordering.SignalrHub/Properties/launchSettings.json View File

@ -22,6 +22,13 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"applicationUrl": "http://localhost:51312/" "applicationUrl": "http://localhost:51312/"
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
} }
} }
}
}

+ 39
- 0
src/Services/Ordering/Ordering.SignalrHub/azds.yaml View File

@ -0,0 +1,39 @@
kind: helm-release
apiVersion: 1.0
build:
context: ..\..\..\..
dockerfile: Dockerfile
install:
chart: ../../../../k8s/helm/ordering-signalrhub
values:
- values.dev.yaml?
- secrets.dev.yaml?
- ..\..\..\..\k8s\helm\app.yaml?
- ..\..\..\..\k8s\helm\inf.yaml?
set:
replicaCount: 1
image:
tag: $(tag)
pullPolicy: Never
ingress:
hosts:
# This expands to [space.s.]orderingsignalrhub.<guid>.<region>.aksapp.io
- $(spacePrefix)orderingsignalrhub$(hostSuffix)
configurations:
develop:
build:
dockerfile: Dockerfile.develop
useGitIgnore: true
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}"]

+ 22
- 0
src/Services/Payment/Payment.API/Dockerfile.develop View File

@ -0,0 +1,22 @@
FROM microsoft/dotnet:2.1-sdk
ARG BUILD_CONFIGURATION=Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
EXPOSE 80
WORKDIR /src
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/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "src/BuildingBlocks/EventBus/IntegrationEventLogEF/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/Microsoft.AspNetCore.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks.SqlServer/Microsoft.Extensions.HealthChecks.SqlServer.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks.SqlServer/"]
COPY ["src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/Microsoft.Extensions.HealthChecks.csproj", "src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions.HealthChecks/"]
COPY ["src/Services/Payment/Payment.API/Payment.API.csproj", "src/Services/Payment/Payment.API/"]
RUN dotnet restore "src/Services/Payment/Payment.API/Payment.API.csproj"
COPY . .
WORKDIR "/src/src/Services/Payment/Payment.API"
RUN dotnet build --no-restore "Payment.API.csproj" -c $BUILD_CONFIGURATION
ENTRYPOINT ["dotnet", "run", "--no-restore", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]

+ 7
- 0
src/Services/Payment/Payment.API/Properties/launchSettings.json View File

@ -24,6 +24,13 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"applicationUrl": "http://localhost:3331" "applicationUrl": "http://localhost:3331"
},
"Azure Dev Spaces": {
"commandName": "AzureDevSpaces",
"launchBrowser": true,
"resourceGroup": "shopErikRG",
"aksName": "shopErik",
"subscriptionId": "c9138ae8-a61d-4ac9-82ab-d827f6182575"
} }
} }
} }

+ 39
- 0
src/Services/Payment/Payment.API/azds.yaml View File

@ -0,0 +1,39 @@
kind: helm-release
apiVersion: 1.0
build:
context: ..\..\..\..
dockerfile: Dockerfile
install:
chart: ../../../../k8s/helm/payment-api
values:
- values.dev.yaml?
- secrets.dev.yaml?
- ..\..\..\..\k8s\helm\app.yaml?
- ..\..\..\..\k8s\helm\inf.yaml?
set:
replicaCount: 1
image:
tag: $(tag)
pullPolicy: Never
ingress:
hosts:
# This expands to [space.s.]paymentapi.<guid>.<region>.aksapp.io
- $(spacePrefix)paymentapi$(hostSuffix)
configurations:
develop:
build:
dockerfile: Dockerfile.develop
useGitIgnore: true
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}"]

Loading…
Cancel
Save