@ -1,12 +1,24 @@ | |||
#!/bin/sh | |||
#dotnet restore | |||
dotnet restore | |||
rm -rf ./pub | |||
dotnet publish "$(pwd)/src/Web/WebMVC/project.json" -o "$(pwd)/pub/webMVC" | |||
dotnet publish "$(pwd)/src/Services/Catalog/Catalog.API/project.json" -o "$(pwd)/pub/catalog" | |||
dotnet publish "$(pwd)/src/Services/Ordering/Ordering.API/project.json" -o "$(pwd)/pub/ordering" | |||
dotnet publish "$(pwd)/src/Services/Basket/Basket.API/project.json" -o "$(pwd)/pub/basket" | |||
pushd "$(pwd)/src/Web/WebSPA/eShopOnContainers.WebSPA" | |||
npm install | |||
npm run build:prod | |||
popd | |||
dotnet publish "$(pwd)/src/Web/WebSPA/eShopOnContainers.WebSPA/project.json" -o "$(pwd)/pub/webSPA" | |||
dotnet publish "$(pwd)/src/Services/Identity/Identity.API/project.json" -o "$(pwd)/pub/identity" | |||
docker build -t eshop/web "$(pwd)/pub/webMVC" | |||
docker build -t eshop/catalog.api "$(pwd)/pub/catalog" | |||
docker build -t eshop/ordering.api "$(pwd)/pub/ordering" | |||
docker build -t eshop/basket.api "$(pwd)/pub/basket" | |||
docker build -t eshop/basket.api "$(pwd)/pub/basket" | |||
docker build -t eshop/webspa "$(pwd)/pub/webSPA" | |||
docker build -t eshop/identity "$(pwd)/pub/identity" | |||
@ -0,0 +1,31 @@ | |||
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path | |||
Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow | |||
$imagesToDelete = docker images --filter=reference="eshop/*" -q | |||
If (-Not $imagesToDelete) {Write-Host "Not deleting eShop images as there are no eShop images in the current local Docker repo."} | |||
Else | |||
{ | |||
# Delete all containers | |||
Write-Host "Deleting all containers in local Docker Host" | |||
docker rm $(docker ps -a -q) -f | |||
# Delete all eshop images | |||
Write-Host "Deleting eShop images in local Docker repo" | |||
Write-Host $imagesToDelete | |||
docker rmi $(docker images --filter=reference="eshop/*" -q) -f | |||
} | |||
# DELETE ALL IMAGES AND CONTAINERS | |||
# Delete all containers | |||
# docker rm $(docker ps -a -q) -f | |||
# Delete all images | |||
# docker rmi $(docker images -q) | |||
#Filter by image name (Has to be complete, cannot be a wildcard) | |||
#docker ps -q --filter=ancestor=eshop/identity.api:dev | |||
@ -1,17 +0,0 @@ | |||
# | |||
# docker-compose.override.yml is used to set up local configuration environment | |||
# Things like the external ports to use or secrets/passwords depend on the | |||
# specific deployment environment you might be using. | |||
# Further details and docs: https://docs.docker.com/compose/extends/ | |||
# | |||
version: '2' | |||
services: | |||
sql.data: | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5433:1433" |
@ -1,16 +0,0 @@ | |||
# | |||
# docker-compose.yml is used to set up the base config per container to be deployed | |||
# Take into account that when deploying, this base configuration is merged with the | |||
# configuration-per-environment specified at the docker-compose.override.yml | |||
# Further details and docs: https://docs.docker.com/compose/extends/ | |||
# | |||
version: '2' | |||
services: | |||
sql.data: | |||
image: microsoft/mssql-server-linux | |||
basket.data: | |||
image: redis | |||
ports: | |||
- "6379:6379" |
@ -0,0 +1,9 @@ | |||
version: '2' | |||
services: | |||
ci-build: | |||
image: microsoft/aspnetcore-build:1.0-1.1 | |||
volumes: | |||
- .:/src | |||
working_dir: /src | |||
command: /bin/bash -c "dotnet restore ./eShopOnContainers-ServicesAndWebApps.sln && dotnet publish ./eShopOnContainers-ServicesAndWebApps.sln -c Release -o ./obj/Docker/publish" |
@ -0,0 +1,22 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk"> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>fea0c318-ffed-4d39-8781-265718ca43dd</ProjectGuid> | |||
<DockerLaunchBrowser>True</DockerLaunchBrowser> | |||
<DockerServiceUrl>http://localhost:5100</DockerServiceUrl> | |||
<DockerServiceName>webmvc</DockerServiceName> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<None Include="docker-compose.ci.build.yml" /> | |||
<None Include="docker-compose.override.yml"> | |||
<DependentUpon>docker-compose.yml</DependentUpon> | |||
</None> | |||
<None Include="docker-compose.vs.debug.yml"> | |||
<DependentUpon>docker-compose.yml</DependentUpon> | |||
</None> | |||
<None Include="docker-compose.vs.release.yml"> | |||
<DependentUpon>docker-compose.yml</DependentUpon> | |||
</None> | |||
<None Include="docker-compose.yml" /> | |||
</ItemGroup> | |||
</Project> |
@ -0,0 +1,92 @@ | |||
version: '2' | |||
services: | |||
basket.api: | |||
image: eshop/basket.api:dev | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
environment: | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- ./src/Services/Basket/Basket.API:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
catalog.api: | |||
image: eshop/catalog.api:dev | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
environment: | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- ./src/Services/Catalog/Catalog.API:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
identity.api: | |||
image: eshop/identity.api:dev | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
environment: | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- ./src/Services/Identity/Identity.API:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
ordering.api: | |||
image: eshop/ordering.api:dev | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
environment: | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- ./src/Services/Ordering/Ordering.API:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
eshoponcontainers.webspa: | |||
image: eshop/eshoponcontainers.webspa:dev | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
environment: | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- ./src/Web/WebSPA/eShopOnContainers.WebSPA:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
webmvc: | |||
image: eshop/webmvc:dev | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
environment: | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- ./src/Web/WebMVC:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" |
@ -0,0 +1,62 @@ | |||
version: '2' | |||
services: | |||
basket.api: | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
catalog.api: | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
identity.api: | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
ordering.api: | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
eshoponcontainers.webspa: | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
webmvc: | |||
build: | |||
args: | |||
source: ${DOCKER_BUILD_SOURCE} | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" |
@ -1,13 +0,0 @@ | |||
{ | |||
"projects": [ | |||
"src", | |||
"test", | |||
"src/Services/Ordering", | |||
"src/Web", | |||
"src/Services/Catalog" | |||
], | |||
"sdk": { | |||
"version": "1.0.0-preview2-003131" | |||
} | |||
} |
@ -1,2 +0,0 @@ | |||
docker-compose.yml | |||
Dockerfile |
@ -1,5 +0,0 @@ | |||
FROM microsoft/dotnet:1.0.1-core | |||
ENTRYPOINT ["dotnet", "eShopConsole.dll"] | |||
ARG source=. | |||
WORKDIR /app | |||
COPY $source . |
@ -1,14 +0,0 @@ | |||
version: '2' | |||
services: | |||
eshopconsole: | |||
build: | |||
args: | |||
source: obj/Docker/empty/ | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
volumes: | |||
- .:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null |
@ -1,9 +0,0 @@ | |||
version: '2' | |||
services: | |||
eshopconsole: | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null |
@ -1,8 +0,0 @@ | |||
version: '2' | |||
services: | |||
eshopconsole: | |||
image: user/eshopconsole${TAG} | |||
build: | |||
context: . | |||
dockerfile: Dockerfile |
@ -1,2 +1,3 @@ | |||
docker-compose.yml | |||
Dockerfile | |||
* | |||
!obj/Docker/publish/* | |||
!obj/Docker/empty/ |
@ -0,0 +1,39 @@ | |||
<Project Sdk="Microsoft.NET.Sdk.Web"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<DebugType>portable</DebugType> | |||
<PreserveCompilationContext>true</PreserveCompilationContext> | |||
<AssemblyName>Basket.API</AssemblyName> | |||
<OutputType>Exe</OutputType> | |||
<PackageId>Basket.API</PackageId> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);netstandard1.6.1;dnxcore50;portable-net451+win8</PackageTargetFallback> | |||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Content Update="wwwroot;Views;Areas\**\Views;appsettings.json;web.config;Dockerfile;docker-compose.yml;.dockerignore"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="System.Threading" Version="4.3.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.0" /> | |||
<PackageReference Include="StackExchange.Redis" Version="1.1.608" /> | |||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | |||
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="1.0.1-rc3" /> | |||
<PackageReference Include="Swashbuckle" Version="6.0.0-beta902" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,19 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>2110cbb0-3b38-4ee4-a743-df6968d80d90</ProjectGuid> | |||
<RootNamespace>Microsoft.eShopOnContainers.Services.Basket.API</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,6 +1,6 @@ | |||
FROM microsoft/aspnetcore:1.1 | |||
ENTRYPOINT ["dotnet", "Basket.API.dll"] | |||
ARG source=. | |||
ARG source | |||
WORKDIR /app | |||
ENV ASPNETCORE_URLS http://*:5103 | |||
COPY $source . | |||
EXPOSE 80 | |||
COPY ${source:-obj/Docker/publish} . | |||
ENTRYPOINT ["dotnet", "Basket.API.dll"] |
@ -1,40 +0,0 @@ | |||
version: '2' | |||
services: | |||
basket.api: | |||
image: eshop/basket.api | |||
environment: | |||
- ConnectionString=basket.data | |||
#- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105. | |||
- identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker. | |||
build: | |||
context: . | |||
dockerfile: Dockerfile | |||
ports: | |||
- "5103:5103" | |||
depends_on: | |||
- basket.data | |||
- identity.service | |||
basket.data: | |||
image: redis | |||
identity.service: | |||
image: eshop/identity | |||
environment: | |||
- SpaClient=http://localhost:5104 | |||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||
ports: | |||
- "5105:5105" | |||
depends_on: | |||
- identity.data | |||
identity.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5433:1433" |
@ -1,62 +0,0 @@ | |||
{ | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"version": "1.1.0", | |||
"type": "platform" | |||
}, | |||
"System.Threading": "4.3.0", | |||
"Microsoft.AspNetCore.Mvc": "1.1.0", | |||
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |||
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", | |||
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", | |||
"Microsoft.Extensions.Configuration.FileExtensions": "1.1.0", | |||
"Microsoft.Extensions.Configuration.Json": "1.1.0", | |||
"Microsoft.Extensions.Logging": "1.1.0", | |||
"Microsoft.Extensions.Logging.Console": "1.1.0", | |||
"Microsoft.Extensions.Logging.Debug": "1.1.0", | |||
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", | |||
"StackExchange.Redis": "1.1.608", | |||
"Newtonsoft.Json": "9.0.1", | |||
"IdentityServer4.AccessTokenValidation": "1.0.1-rc3", | |||
"Swashbuckle": "6.0.0-beta902" | |||
}, | |||
"tools": { | |||
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" | |||
}, | |||
"frameworks": { | |||
"netcoreapp1.1": { | |||
"imports": [ | |||
"netstandard1.6.1", | |||
"dnxcore50", | |||
"portable-net451+win8" | |||
] | |||
} | |||
}, | |||
"buildOptions": { | |||
"emitEntryPoint": true, | |||
"preserveCompilationContext": true, | |||
"debugType": "portable" | |||
}, | |||
"runtimeOptions": { | |||
"configProperties": { | |||
"System.GC.Server": true | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"wwwroot", | |||
"Views", | |||
"Areas/**/Views", | |||
"appsettings.json", | |||
"web.config", | |||
"Dockerfile", | |||
"docker-compose.yml", | |||
".dockerignore" | |||
] | |||
}, | |||
"scripts": { | |||
"postpublish": [ | |||
"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" | |||
] | |||
} | |||
} |
@ -0,0 +1,3 @@ | |||
* | |||
!obj/Docker/publish/* | |||
!obj/Docker/empty/ |
@ -0,0 +1,47 @@ | |||
<Project Sdk="Microsoft.NET.Sdk.Web"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<DebugType>portable</DebugType> | |||
<PreserveCompilationContext>true</PreserveCompilationContext> | |||
<AssemblyName>Catalog.API</AssemblyName> | |||
<OutputType>Exe</OutputType> | |||
<PackageId>Catalog.API</PackageId> | |||
<UserSecretsId>aspnet-Catalog.API-20161122013618</UserSecretsId> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback> | |||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Content Update="wwwroot;Pics\**\*;Views;Areas\**\Views;settings.json;web.config;project.json;Dockerfile"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.Abstractions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.0" /> | |||
<PackageReference Include="Swashbuckle" Version="6.0.0-beta902" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,19 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>42681d9d-750a-4df7-bd9f-9292cfd5c253</ProjectGuid> | |||
<RootNamespace>Microsoft.eShopOnContainers.Services.Catalog.API</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,5 +1,6 @@ | |||
FROM microsoft/aspnetcore:1.1 | |||
ARG source | |||
WORKDIR /app | |||
EXPOSE 80 | |||
COPY . /app | |||
ENTRYPOINT dotnet Catalog.API.dll | |||
COPY ${source:-obj/Docker/publish} . | |||
ENTRYPOINT ["dotnet", "Catalog.API.dll"] |
@ -1,21 +0,0 @@ | |||
version: '2' | |||
services: | |||
catalog.api: | |||
image: eshop/catalog.api | |||
environment: | |||
- ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word | |||
expose: | |||
- "80" | |||
ports: | |||
- "5101:80" | |||
depends_on: | |||
- catalog.data | |||
catalog.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5434:1433" |
@ -1,61 +0,0 @@ | |||
{ | |||
"buildOptions": { | |||
"emitEntryPoint": true, | |||
"preserveCompilationContext": true, | |||
"debugType": "portable" | |||
}, | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"version": "1.1.0", | |||
"type": "platform" | |||
}, | |||
"Microsoft.AspNetCore.Mvc": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics.Abstractions": "1.1.0", | |||
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |||
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", | |||
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", | |||
"Microsoft.Extensions.Configuration.FileExtensions": "1.1.0", | |||
"Microsoft.Extensions.Configuration.UserSecrets": "1.1.0", | |||
"Microsoft.Extensions.Configuration.Json": "1.1.0", | |||
"Microsoft.Extensions.Logging": "1.1.0", | |||
"Microsoft.Extensions.Logging.Console": "1.1.0", | |||
"Microsoft.Extensions.Logging.Debug": "1.1.0", | |||
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", | |||
"Microsoft.EntityFrameworkCore": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.Relational": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.Design": "1.1.0", | |||
"Swashbuckle": "6.0.0-beta902" | |||
}, | |||
"frameworks": { | |||
"netcoreapp1.1": { | |||
"imports": [ | |||
"dotnet5.6", | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"wwwroot", | |||
"Pics", | |||
"Views", | |||
"Areas/**/Views", | |||
"settings.json", | |||
"web.config", | |||
"project.json", | |||
"Dockerfile" | |||
] | |||
}, | |||
"runtimeOptions": { | |||
"configProperties": { | |||
"System.GC.Server": true | |||
} | |||
}, | |||
"scripts": {}, | |||
"tools": { | |||
"Microsoft.EntityFrameworkCore.Tools": "1.1.0-preview4-final" | |||
}, | |||
"userSecretsId": "aspnet-Catalog.API-20161122013618" | |||
} |
@ -0,0 +1,3 @@ | |||
* | |||
!obj/Docker/publish/* | |||
!obj/Docker/empty/ |
@ -1,6 +1,6 @@ | |||
FROM microsoft/aspnetcore:1.1 | |||
ENTRYPOINT ["dotnet", "Identity.API.dll"] | |||
ARG source=. | |||
ARG source | |||
WORKDIR /app | |||
ENV ASPNETCORE_URLS http://*:5105 | |||
COPY $source . | |||
EXPOSE 80 | |||
COPY ${source:-obj/Docker/publish} . | |||
ENTRYPOINT ["dotnet", "Identity.API.dll"] |
@ -0,0 +1,66 @@ | |||
<Project Sdk="Microsoft.NET.Sdk.Web"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<DebugType>portable</DebugType> | |||
<PreserveCompilationContext>true</PreserveCompilationContext> | |||
<AssemblyName>Identity.API</AssemblyName> | |||
<OutputType>Exe</OutputType> | |||
<PackageId>Identity.API</PackageId> | |||
<UserSecretsId>aspnet-eShopOnContainers.Identity-90487118-103c-4ff0-b9da-e5e26f7ab0c5</UserSecretsId> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback> | |||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Content Update="wwwroot\**\*;Views\**\*;Areas\**\Views;appsettings.json;web.config;Dockerfile;docker-compose.yml;.dockerignore"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Routing" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.0"> | |||
<PrivateAssets>All</PrivateAssets> | |||
</PackageReference> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.0.0-msbuild3-final"> | |||
<PrivateAssets>All</PrivateAssets> | |||
</PackageReference> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink.Loader" Version="14.1.0" /> | |||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="1.1.0-msbuild3-final"> | |||
<PrivateAssets>All</PrivateAssets> | |||
</PackageReference> | |||
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="1.0.0-rc3" /> | |||
<PackageReference Include="IdentityServer4.EntityFramework" Version="1.0.0-rc3" /> | |||
</ItemGroup> | |||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||
<Exec Command="bower install" /> | |||
<Exec Command="dotnet bundle" /> | |||
</Target> | |||
<ItemGroup> | |||
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.2.301" /> | |||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final" /> | |||
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" /> | |||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,23 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>a579e108-5445-403d-a407-339ac4d1611b</ProjectGuid> | |||
<RootNamespace>Identity.API</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<DnxInvisibleContent Include="bower.json" /> | |||
<DnxInvisibleContent Include=".bowerrc" /> | |||
</ItemGroup> | |||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,22 +0,0 @@ | |||
version: '2' | |||
services: | |||
identity.service: | |||
image: eshop/identity | |||
environment: | |||
- SpaClient=http://localhost:5104 | |||
- ConnectionStrings__DefaultConnection=Server=identity.data;Database=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word | |||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||
ports: | |||
- "5105:5105" | |||
depends_on: | |||
- identity.data | |||
sql.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5433:1433" |
@ -1,101 +0,0 @@ | |||
{ | |||
"userSecretsId": "aspnet-eShopOnContainers.Identity-90487118-103c-4ff0-b9da-e5e26f7ab0c5", | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"version": "1.1.0", | |||
"type": "platform" | |||
}, | |||
"Microsoft.AspNetCore.Authentication.Cookies": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.1.0", | |||
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0", | |||
"Microsoft.AspNetCore.Mvc": "1.1.0", | |||
"Microsoft.AspNetCore.Routing": "1.1.0", | |||
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |||
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", | |||
"Microsoft.AspNetCore.StaticFiles": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.SqlServer.Design": { | |||
"version": "1.1.0", | |||
"type": "build" | |||
}, | |||
"Microsoft.EntityFrameworkCore.Tools": { | |||
"version": "1.1.0-preview4-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", | |||
"Microsoft.Extensions.Configuration.Json": "1.1.0", | |||
"Microsoft.Extensions.Configuration.UserSecrets": "1.1.0", | |||
"Microsoft.Extensions.Logging": "1.1.0", | |||
"Microsoft.Extensions.Logging.Console": "1.1.0", | |||
"Microsoft.Extensions.Logging.Debug": "1.1.0", | |||
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", | |||
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0", | |||
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": { | |||
"version": "1.1.0-preview4-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.VisualStudio.Web.CodeGenerators.Mvc": { | |||
"version": "1.1.0-preview4-final", | |||
"type": "build" | |||
}, | |||
"IdentityServer4.AspNetIdentity": "1.0.0-rc3", | |||
"IdentityServer4.EntityFramework": "1.0.0-rc3", | |||
}, | |||
"tools": { | |||
"BundlerMinifier.Core": "2.0.238", | |||
"Microsoft.AspNetCore.Razor.Tools": "1.1.0-preview4-final", | |||
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final", | |||
"Microsoft.EntityFrameworkCore.Tools": "1.1.0-preview4-final", | |||
"Microsoft.Extensions.SecretManager.Tools": "1.1.0-preview4-final", | |||
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": { | |||
"version": "1.1.0-preview4-final", | |||
"imports": [ | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"netcoreapp1.0": { | |||
"imports": [ | |||
"dotnet5.6", | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"buildOptions": { | |||
"emitEntryPoint": true, | |||
"preserveCompilationContext": true, | |||
"debugType": "portable" | |||
}, | |||
"runtimeOptions": { | |||
"configProperties": { | |||
"System.GC.Server": true | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"wwwroot", | |||
"Views", | |||
"Areas/**/Views", | |||
"appsettings.json", | |||
"web.config", | |||
"Dockerfile", | |||
"docker-compose.yml", | |||
".dockerignore" | |||
] | |||
}, | |||
"scripts": { | |||
"prepublish": [ | |||
"bower install", | |||
"dotnet bundle" | |||
] | |||
//"postpublish": [ | |||
// "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" | |||
//] | |||
} | |||
} |
@ -1,2 +1,3 @@ | |||
docker-compose.yml | |||
Dockerfile | |||
* | |||
!obj/Docker/publish/* | |||
!obj/Docker/empty/ |
@ -1,8 +1,6 @@ | |||
FROM microsoft/aspnetcore:1.1 | |||
# Entry point through the copied assembly | |||
ENTRYPOINT ["dotnet", "Ordering.API.dll"] | |||
ARG source=. | |||
ARG source | |||
WORKDIR /app | |||
ENV ASPNETCORE_URLS http://*:5102 | |||
COPY $source . | |||
EXPOSE 80 | |||
COPY ${source:-obj/Docker/publish} . | |||
ENTRYPOINT ["dotnet", "Ordering.API.dll"] |
@ -0,0 +1,57 @@ | |||
<Project Sdk="Microsoft.NET.Sdk.Web"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<DebugType>portable</DebugType> | |||
<PreserveCompilationContext>true</PreserveCompilationContext> | |||
<AssemblyName>Ordering.API</AssemblyName> | |||
<OutputType>Exe</OutputType> | |||
<PackageId>Ordering.API</PackageId> | |||
<UserSecretsId>aspnet-Ordering.API-20161122013547</UserSecretsId> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);netstandard1.6.1;dnxcore50;portable-net451+win8</PackageTargetFallback> | |||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Content Update="wwwroot;Views;Areas\**\Views;settings.json;web.config;docker-compose.yml;docker-compose.debug.yml;Dockerfile.debug;Dockerfile;.dockerignore"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\Ordering.Domain\Ordering.Domain.csproj" /> | |||
<ProjectReference Include="..\Ordering.Infrastructure\Ordering.Infrastructure.csproj" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="1.1.0" /> | |||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.0.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.0.2" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" /> | |||
<PackageReference Include="Swashbuckle" Version="6.0.0-beta902" /> | |||
<PackageReference Include="MediatR" Version="2.1.0" /> | |||
<PackageReference Include="System.Reflection" Version="4.3.0" /> | |||
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="1.0.1-rc3" /> | |||
<PackageReference Include="Dapper" Version="1.50.2" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.1.0-preview4-final" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,18 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>231226ce-690b-4979-8870-9a79d80928e2</ProjectGuid> | |||
<RootNamespace>Microsoft.eShopOnContainers.Services.Ordering.API</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,39 +0,0 @@ | |||
version: '2' | |||
services: | |||
ordering.api: | |||
image: eshop/ordering.api | |||
environment: | |||
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word | |||
ports: | |||
- "5102:80" | |||
depends_on: | |||
- ordering.data | |||
ordering.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5432:1433" | |||
identity.service: | |||
image: eshop/identity | |||
environment: | |||
- SpaClient=http://localhost:5104 | |||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||
ports: | |||
- "5105:5105" | |||
depends_on: | |||
- identity.data | |||
identity.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5433:1433" |
@ -1,76 +0,0 @@ | |||
{ | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"version": "1.1.0", | |||
"type": "platform" | |||
}, | |||
"MediatR.Extensions.Microsoft.DependencyInjection": "1.1.0", | |||
"Autofac.Extensions.DependencyInjection": "4.0.0", | |||
"Microsoft.AspNetCore.Mvc": "1.1.0", | |||
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |||
"Microsoft.AspNetCore.Server.Kestrel":"1.0.1", | |||
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", | |||
"Microsoft.Extensions.Configuration.FileExtensions": "1.1.0", | |||
"Microsoft.Extensions.Configuration.UserSecrets": "1.1.0", | |||
"Microsoft.Extensions.Configuration.Json": "1.1.0", | |||
"Microsoft.Extensions.Logging.Abstractions": "1.1.0", | |||
"Microsoft.Extensions.Logging.Console": "1.1.0", | |||
"Microsoft.Extensions.Logging.Debug": "1.1.0", | |||
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.0", | |||
"Microsoft.EntityFrameworkCore": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.Design":"1.1.0", | |||
"Microsoft.EntityFrameworkCore.SqlServer.Design": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics": "1.1.0", | |||
"Swashbuckle": "6.0.0-beta902", | |||
"MediatR": "2.1.0", | |||
"System.Reflection": "4.3.0", | |||
"IdentityServer4.AccessTokenValidation": "1.0.1-rc3", | |||
"Dapper": "1.50.2", | |||
"Ordering.Domain": "1.0.0-*", | |||
"Ordering.Infrastructure": "1.0.0-*" | |||
}, | |||
"tools": { | |||
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.1.0-preview4-final", | |||
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" | |||
}, | |||
"frameworks": { | |||
"netcoreapp1.1": { | |||
"imports": [ | |||
"netstandard1.6.1", | |||
"dnxcore50", | |||
"portable-net451+win8" | |||
] | |||
} | |||
}, | |||
"buildOptions": { | |||
"emitEntryPoint": true, | |||
"preserveCompilationContext": true, | |||
"debugType": "portable" | |||
}, | |||
"runtimeOptions": { | |||
"configProperties": { | |||
"System.GC.Server": true | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"wwwroot", | |||
"Views", | |||
"Areas/**/Views", | |||
"settings.json", | |||
"web.config", | |||
"docker-compose.yml", | |||
"docker-compose.debug.yml", | |||
"Dockerfile.debug", | |||
"Dockerfile", | |||
".dockerignore" | |||
] | |||
}, | |||
"scripts": { | |||
"postpublish": [ | |||
"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" | |||
] | |||
}, | |||
"userSecretsId": "aspnet-Ordering.API-20161122013547" | |||
} |
@ -0,0 +1,14 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>netstandard1.6.1</TargetFramework> | |||
<AssemblyName>Ordering.Domain</AssemblyName> | |||
<PackageId>Ordering.Domain</PackageId> | |||
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback> | |||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | |||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | |||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | |||
</PropertyGroup> | |||
</Project> |
@ -1,19 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>f5598dcb-6dde-4661-ad9d-a55612da7e76</ProjectGuid> | |||
<RootNamespace>Microsoft.eShopOnContainers.Services.Ordering.Domain</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,13 +0,0 @@ | |||
{ | |||
"version": "1.0.0-*", | |||
"dependencies": { | |||
"NETStandard.Library": "1.6.1" | |||
}, | |||
"frameworks": { | |||
"netstandard1.6.1": { | |||
"imports": "dnxcore50" | |||
} | |||
} | |||
} |
@ -0,0 +1,23 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>netstandard1.6.1</TargetFramework> | |||
<AssemblyName>Ordering.Infrastructure</AssemblyName> | |||
<PackageId>Ordering.Infrastructure</PackageId> | |||
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback> | |||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | |||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | |||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\Ordering.Domain\Ordering.Domain.csproj" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.0" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,19 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>95f1f07c-4d92-4742-bd07-e5b805aab651</ProjectGuid> | |||
<RootNamespace>Microsoft.eShopOnContainers.Services.Ordering.Infrastructure</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,16 +0,0 @@ | |||
{ | |||
"version": "1.0.0-*", | |||
"dependencies": { | |||
"NETStandard.Library": "1.6.1", | |||
"Microsoft.EntityFrameworkCore": "1.1.0", | |||
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.0", | |||
"Ordering.Domain": "1.0.0-*" | |||
}, | |||
"frameworks": { | |||
"netstandard1.6.1": { | |||
"imports": "dnxcore50" | |||
} | |||
} | |||
} |
@ -1,2 +1,3 @@ | |||
docker-compose.yml | |||
Dockerfile | |||
* | |||
!obj/Docker/publish/* | |||
!obj/Docker/empty/ |
@ -1,6 +1,6 @@ | |||
FROM microsoft/aspnetcore:1.1 | |||
ENTRYPOINT ["dotnet", "WebMVC.dll"] | |||
ARG source=. | |||
ARG source | |||
WORKDIR /app | |||
ENV ASPNETCORE_URLS http://0.0.0.0:5100 | |||
COPY $source . | |||
EXPOSE 80 | |||
COPY ${source:-obj/Docker/publish} . | |||
ENTRYPOINT ["dotnet", "WebMVC.dll"] |
@ -0,0 +1,90 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Diagnostics; | |||
using System.Linq; | |||
using System.Threading.Tasks; | |||
namespace Microsoft.eShopOnContainers.WebMVC.Services | |||
{ | |||
/// <summary> | |||
/// When working with cloud services and Docker containers, it's very important to always catch | |||
/// TimeoutException, and retry the operation. | |||
/// RetryWithExponentialBackoff makes it easy to implement such pattern. | |||
/// Usage: | |||
/// var retry = new RetryWithExponentialBackoff(); | |||
/// await retry.RunAsync(async ()=> | |||
/// { | |||
/// // work with HttpClient | |||
/// }); | |||
/// </summary> | |||
public sealed class RetryWithExponentialBackoff | |||
{ | |||
private readonly int maxRetries, delayMilliseconds, maxDelayMilliseconds; | |||
public RetryWithExponentialBackoff(int maxRetries = 5, int delayMilliseconds = 200, int maxDelayMilliseconds = 2000) | |||
{ | |||
this.maxRetries = maxRetries; | |||
this.delayMilliseconds = delayMilliseconds; | |||
this.maxDelayMilliseconds = maxDelayMilliseconds; | |||
} | |||
public async Task RunAsync(Func<Task> func) | |||
{ | |||
ExponentialBackoff backoff = new ExponentialBackoff(this.maxRetries, this.delayMilliseconds, this.maxDelayMilliseconds); | |||
retry: | |||
try | |||
{ | |||
await func(); | |||
} | |||
catch (Exception ex) when (ex is TimeoutException || ex is System.Net.Http.HttpRequestException) | |||
{ | |||
Debug.WriteLine("Exception raised is: " + ex.GetType().ToString() + " -- Message: " + ex.Message + " -- Inner Message: " + ex.InnerException.Message); | |||
await backoff.Delay(); | |||
goto retry; | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// Usage: | |||
/// ExponentialBackoff backoff = new ExponentialBackoff(3, 10, 100); | |||
/// retry: | |||
/// try { | |||
/// // ... | |||
/// } | |||
/// catch (Exception ex) { | |||
/// await backoff.Delay(cancellationToken); | |||
/// goto retry; | |||
/// } | |||
/// </summary> | |||
public struct ExponentialBackoff | |||
{ | |||
private readonly int m_maxRetries, m_delayMilliseconds, m_maxDelayMilliseconds; | |||
private int m_retries, m_pow; | |||
public ExponentialBackoff(int maxRetries, int delayMilliseconds, int maxDelayMilliseconds) | |||
{ | |||
m_maxRetries = maxRetries; | |||
m_delayMilliseconds = delayMilliseconds; | |||
m_maxDelayMilliseconds = maxDelayMilliseconds; | |||
m_retries = 0; | |||
m_pow = 1; | |||
} | |||
public Task Delay() | |||
{ | |||
if (m_retries == m_maxRetries) | |||
{ | |||
throw new TimeoutException("Max retry attempts exceeded."); | |||
} | |||
++m_retries; | |||
if (m_retries < 31) | |||
{ | |||
m_pow = m_pow << 1; // m_pow = Pow(2, m_retries - 1) | |||
} | |||
int delay = Math.Min(m_delayMilliseconds * (m_pow - 1) / 2, m_maxDelayMilliseconds); | |||
return Task.Delay(delay); | |||
} | |||
} | |||
} |
@ -0,0 +1,59 @@ | |||
<Project Sdk="Microsoft.NET.Sdk.Web"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<DebugType>portable</DebugType> | |||
<PreserveCompilationContext>true</PreserveCompilationContext> | |||
<AssemblyName>WebMVC</AssemblyName> | |||
<OutputType>Exe</OutputType> | |||
<PackageId>WebMVC</PackageId> | |||
<UserSecretsId>aspnet-Microsoft.eShopOnContainers-946ae052-8305-4a99-965b-ec8636ddbae3</UserSecretsId> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback> | |||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Content Update="wwwroot\**\*;Views\**\*;Areas\**\Views;appsettings.json;appsettings.override.json;web.config;Dockerfile;docker-compose.yml;.dockerignore"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.1" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink.Loader" Version="14.1.0" /> | |||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="1.0.0-msbuild3-final"> | |||
<PrivateAssets>All</PrivateAssets> | |||
</PackageReference> | |||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | |||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options" Version="1.1.0" /> | |||
</ItemGroup> | |||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||
<Exec Command="bower install" /> | |||
<Exec Command="dotnet bundle" /> | |||
</Target> | |||
<ItemGroup> | |||
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.2.301" /> | |||
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" /> | |||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,17 +0,0 @@ | |||
version: '2' | |||
services: | |||
webmvc: | |||
build: | |||
args: | |||
source: obj/Docker/empty/ | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
environment: | |||
- ASPNETCORE_ENVIRONMENT=Development | |||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||
volumes: | |||
- .:/app | |||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null |
@ -1,9 +0,0 @@ | |||
version: '2' | |||
services: | |||
webmvc: | |||
labels: | |||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||
volumes: | |||
- ~/clrdbg:/clrdbg:ro | |||
entrypoint: tail -f /dev/null |
@ -1,95 +0,0 @@ | |||
version: '2' | |||
services: | |||
webmvc: | |||
image: eshop/web${TAG} | |||
build: | |||
context: . | |||
dockerfile: Dockerfile | |||
environment: | |||
- CatalogUrl=http://catalog.api | |||
- OrderingUrl=http://ordering.api | |||
#- IdentityUrl=http://104.40.62.65:5105 | |||
- IdentityUrl=http://identity.service:5105 #You need a entry in windows host file. | |||
- BasketUrl=http://basket.api | |||
- ASPNETCORE_ENVIRONMENT=Development | |||
ports: | |||
- "5100:5100" | |||
depends_on: | |||
- identity.service | |||
- basket.api | |||
links: | |||
- identity.service:localhost # This line should be removed | |||
identity.service: | |||
image: eshop/identity | |||
environment: | |||
- Spa=http://webspa | |||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||
- Mvc=http://webmvc | |||
ports: | |||
- "5105:5105" | |||
depends_on: | |||
- identity.data | |||
identity.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5433:1433" | |||
basket.api: | |||
image: eshop/basket.api | |||
environment: | |||
- ConnectionString=basket.data | |||
#- identityUrl=http://104.40.62.65:5105 | |||
- identityUrl=http://identity.service:5105 | |||
build: | |||
context: . | |||
dockerfile: Dockerfile | |||
ports: | |||
- "5103:80" | |||
depends_on: | |||
- basket.data | |||
- identity.service | |||
basket.data: | |||
image: redis | |||
catalog.api: | |||
image: eshop/catalog.api | |||
environment: | |||
- ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word | |||
expose: | |||
- "80" | |||
ports: | |||
- "5101:80" | |||
depends_on: | |||
- catalog.data | |||
catalog.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5434:1433" | |||
ordering.api: | |||
image: eshop/ordering.api | |||
environment: | |||
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word | |||
ports: | |||
- "5102:80" | |||
depends_on: | |||
- ordering.data | |||
ordering.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5432:1433" |
@ -1,23 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>f0333d8e-0b27-42b7-b2c6-78f3657624e2</ProjectGuid> | |||
<RootNamespace>Microsoft.eShopOnContainers.WebMVC</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<DnxInvisibleContent Include="bower.json" /> | |||
<DnxInvisibleContent Include=".bowerrc" /> | |||
</ItemGroup> | |||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,93 +0,0 @@ | |||
{ | |||
"userSecretsId": "aspnet-Microsoft.eShopOnContainers-946ae052-8305-4a99-965b-ec8636ddbae3", | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"version": "1.1.0", | |||
"type": "platform" | |||
}, | |||
"Microsoft.AspNetCore.Authentication.Cookies": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics": "1.1.0", | |||
"Microsoft.AspNetCore.Mvc": "1.1.1", | |||
"Microsoft.AspNetCore.Razor.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |||
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", | |||
"Microsoft.AspNetCore.StaticFiles": "1.1.0", | |||
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", | |||
"Microsoft.Extensions.Configuration.Json": "1.1.0", | |||
"Microsoft.Extensions.Configuration.UserSecrets": "1.1.0", | |||
"Microsoft.Extensions.Logging": "1.1.0", | |||
"Microsoft.Extensions.Logging.Console": "1.1.0", | |||
"Microsoft.Extensions.Logging.Debug": "1.1.0", | |||
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", | |||
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0", | |||
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.VisualStudio.Web.CodeGenerators.Mvc": { | |||
"version": "1.0.0-preview2-final", | |||
"type": "build" | |||
}, | |||
"Newtonsoft.Json": "9.0.1", | |||
"System.IdentityModel.Tokens.Jwt": "5.1.0", | |||
"Microsoft.AspNetCore.Authentication.OpenIdConnect": "1.1.0", | |||
"Microsoft.AspNetCore.Authentication.JwtBearer": "1.1.0", | |||
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0", | |||
"Microsoft.Extensions.Options": "1.1.0" | |||
}, | |||
"tools": { | |||
"BundlerMinifier.Core": "2.0.238", | |||
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final", | |||
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final", | |||
"Microsoft.Extensions.SecretManager.Tools": "1.0.0-preview2-final", | |||
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"imports": [ | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"netcoreapp1.0": { | |||
"imports": [ | |||
"dotnet5.6", | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"buildOptions": { | |||
"emitEntryPoint": true, | |||
"preserveCompilationContext": true, | |||
"debugType": "portable" | |||
}, | |||
"runtimeOptions": { | |||
"configProperties": { | |||
"System.GC.Server": true | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"wwwroot", | |||
"Views", | |||
"Areas/**/Views", | |||
"appsettings.json", | |||
"appsettings.override.json", | |||
"web.config", | |||
"Dockerfile", | |||
"docker-compose.yml", | |||
".dockerignore" | |||
] | |||
}, | |||
"scripts": { | |||
"prepublish": [ | |||
"bower install", | |||
"dotnet bundle" | |||
], | |||
"postpublish": [ | |||
"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" | |||
] | |||
} | |||
} |
@ -0,0 +1,3 @@ | |||
* | |||
!obj/Docker/publish/* | |||
!obj/Docker/empty/ |
@ -1,8 +1,6 @@ | |||
FROM microsoft/aspnetcore:1.1 | |||
ENTRYPOINT ["dotnet", "eShopOnContainers.WebSPA.dll"] | |||
ARG source=. | |||
ARG source | |||
WORKDIR /app | |||
ENV ASPNETCORE_URLS http://0.0.0.0:5104 | |||
COPY $source . | |||
EXPOSE 80 | |||
COPY ${source:-obj/Docker/publish} . | |||
ENTRYPOINT ["dotnet", "eShopOnContainers.WebSPA.dll"] |
@ -1,91 +0,0 @@ | |||
version: '2' | |||
services: | |||
webspa: | |||
image: eshop/webspa | |||
build: | |||
context: . | |||
dockerfile: Dockerfile | |||
environment: | |||
- CatalogUrl=http://catalog.api | |||
- OrderingUrl=http://ordering.api | |||
#- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105. | |||
- IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker. | |||
- BasketUrl=http://basket.api | |||
ports: | |||
- "5104:80" | |||
depends_on: | |||
- basket.api | |||
- identity.service | |||
identity.service: | |||
image: eshop/identity | |||
environment: | |||
- SpaClient=http://localhost:5104 | |||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||
ports: | |||
- "5105:5105" | |||
depends_on: | |||
- identity.data | |||
identity.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5433:1433" | |||
basket.api: | |||
image: eshop/basket.api | |||
environment: | |||
- ConnectionString=basket.data | |||
#- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105. | |||
- identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker. | |||
build: | |||
context: . | |||
dockerfile: Dockerfile | |||
ports: | |||
- "5103:5103" | |||
depends_on: | |||
- basket.data | |||
- identity.service | |||
basket.data: | |||
image: redis | |||
catalog.api: | |||
image: eshop/catalog.api | |||
environment: | |||
- ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word | |||
ports: | |||
- "5101:80" | |||
depends_on: | |||
- catalog.data | |||
catalog.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5434:1433" | |||
ordering.api: | |||
image: eshop/ordering.api | |||
environment: | |||
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word | |||
ports: | |||
- "5102:80" | |||
depends_on: | |||
- ordering.data | |||
ordering.data: | |||
image: microsoft/mssql-server-linux | |||
environment: | |||
- SA_PASSWORD=Pass@word | |||
- ACCEPT_EULA=Y | |||
ports: | |||
- "5432:1433" |
@ -0,0 +1,60 @@ | |||
<Project Sdk="Microsoft.NET.Sdk.Web"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<DebugType>portable</DebugType> | |||
<PreserveCompilationContext>true</PreserveCompilationContext> | |||
<AssemblyName>eShopOnContainers.WebSPA</AssemblyName> | |||
<OutputType>Exe</OutputType> | |||
<PackageId>eShopOnContainers.WebSPA</PackageId> | |||
<UserSecretsId>aspnetcorespa-c23d27a4-eb88-4b18-9b77-2a93f3b15119</UserSecretsId> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback> | |||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Compile Remove="node_modules\**\*;Client\**\*" /> | |||
<Content Update="appsettings.json;Client\**\*;typings;Views\**\*;tsconfig.json;tsd.json;web.config;config\**\*;wwwroot\**\*;dockerfile"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.1" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Cors" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Antiforgery" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="1.1.0" /> | |||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | |||
<PackageReference Include="Webpack" Version="3.0.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.AngularServices" Version="1.0.0-beta-000014" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="1.0.0-msbuild3-final"> | |||
<PrivateAssets>All</PrivateAssets> | |||
</PackageReference> | |||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Options" Version="1.1.0" /> | |||
</ItemGroup> | |||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||
<Exec Command="npm run build:prod" /> | |||
</Target> | |||
<ItemGroup> | |||
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0-msbuild3-final" /> | |||
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" /> | |||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,17 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>9842db3a-1391-48c7-a49c-2fabd0a18ac2</ProjectGuid> | |||
<RootNamespace>eShopOnContainers.WebSPA</RootNamespace> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,116 +0,0 @@ | |||
{ | |||
"userSecretsId": "aspnetcorespa-c23d27a4-eb88-4b18-9b77-2a93f3b15119", | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"version": "1.1.0", | |||
"type": "platform" | |||
}, | |||
"Microsoft.Extensions.Configuration.UserSecrets": "1.1.0", | |||
"Microsoft.AspNetCore.Authentication.Cookies": "1.1.0", | |||
"Microsoft.AspNetCore.Diagnostics": "1.1.0", | |||
"Microsoft.AspNetCore.Mvc": "1.1.1", | |||
"Microsoft.AspNetCore.Cors": "1.1.0", | |||
"Microsoft.AspNetCore.Antiforgery": "1.1.0", | |||
"Microsoft.AspNetCore.Authorization": "1.1.0", | |||
"Newtonsoft.Json": "9.0.1", | |||
"Webpack": "3.0.0", | |||
"Microsoft.AspNetCore.AngularServices": "1.0.0-beta-000014", | |||
"Microsoft.AspNetCore.Razor.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |||
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", | |||
"Microsoft.AspNetCore.StaticFiles": "1.1.0", | |||
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", | |||
"Microsoft.Extensions.Configuration.Json": "1.1.0", | |||
"Microsoft.Extensions.Logging": "1.1.0", | |||
"Microsoft.Extensions.Logging.Console": "1.1.0", | |||
"Microsoft.Extensions.Logging.Debug": "1.1.0", | |||
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", | |||
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.VisualStudio.Web.CodeGenerators.Mvc": { | |||
"version": "1.0.0-preview2-final", | |||
"type": "build" | |||
}, | |||
"Microsoft.AspNetCore.Http.Abstractions": "1.1.0", | |||
"Microsoft.Extensions.Options": "1.1.0" | |||
}, | |||
"tools": { | |||
"Microsoft.DotNet.Watcher.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"imports": "portable-net451+win8+dnxcore50" | |||
}, | |||
"Microsoft.AspNetCore.Razor.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"imports": "portable-net45+win8+dnxcore50" | |||
}, | |||
"Microsoft.AspNetCore.Server.IISIntegration.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"imports": "portable-net45+win8+dnxcore50" | |||
}, | |||
"Microsoft.Extensions.SecretManager.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"imports": "portable-net45+win8+dnxcore50" | |||
}, | |||
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": { | |||
"version": "1.0.0-preview2-final", | |||
"imports": [ | |||
"portable-net45+win8+dnxcore50", | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"netcoreapp1.0": { | |||
"imports": [ | |||
"dotnet5.6", | |||
"portable-net45+win8" | |||
] | |||
} | |||
}, | |||
"buildOptions": { | |||
"emitEntryPoint": true, | |||
"preserveCompilationContext": true, | |||
"compile": { | |||
"exclude": [ | |||
"node_modules", | |||
"Client" | |||
] | |||
}, | |||
"debugType": "portable" | |||
}, | |||
"runtimeOptions": { | |||
"configProperties": { | |||
"System.GC.Server": true | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"appsettings.json", | |||
"Client", | |||
"typings", | |||
"Views", | |||
"tsconfig.json", | |||
"tsd.json", | |||
"web.config", | |||
"config", | |||
"wwwroot", | |||
"dockerfile" | |||
] | |||
}, | |||
"scripts": { | |||
"prepublish": [ | |||
"npm run build:prod" | |||
], | |||
"postpublish": [ | |||
"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" | |||
] | |||
}, | |||
"tooling": { | |||
"defaultNamespace": "eShopOnContainers.SPA" | |||
} | |||
} |
@ -0,0 +1,34 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<AssemblyName>FunctionalTests</AssemblyName> | |||
<PackageId>FunctionalTests</PackageId> | |||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);netstandard1.6.1;dnxcore50;portable-net451+win8</PackageTargetFallback> | |||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | |||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | |||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Content Include="settings.json;web.config"> | |||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\src\Services\Catalog\Catalog.API\Catalog.API.csproj" /> | |||
<ProjectReference Include="..\..\..\src\Services\Ordering\Ordering.API\Ordering.API.csproj" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0-preview-20170106-08" /> | |||
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0-beta5-build1225" /> | |||
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="1.1.0" /> | |||
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="1.0.0" /> | |||
<PackageReference Include="xunit" Version="2.2.0-beta5-build3474" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,22 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>621e7211-58d0-45fd-9600-1cb490bd930e</ProjectGuid> | |||
<RootNamespace>FunctionalTests</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | |||
</ItemGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,35 +0,0 @@ | |||
{ | |||
"version": "1.0.0-*", | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"type": "platform", | |||
"version": "1.1.0" | |||
}, | |||
"Microsoft.AspNetCore.TestHost": "1.1.0", | |||
"dotnet-test-xunit": "2.2.0-preview2-build1029", | |||
"Microsoft.DotNet.InternalAbstractions": "1.0.0", | |||
"xunit": "2.2.0-beta4-build3444", | |||
"Catalog.API": "1.0.0-*", | |||
"Ordering.API": "1.0.0-*" | |||
}, | |||
"testRunner": "xunit", | |||
//"runtimes": { | |||
// "win10-x64": {} | |||
//}, | |||
"frameworks": { | |||
"netcoreapp1.1": { | |||
"imports": [ | |||
"netstandard1.6.1", | |||
"dnxcore50", | |||
"portable-net451+win8" | |||
] | |||
} | |||
}, | |||
"publishOptions": { | |||
"include": [ | |||
"settings.json", | |||
"web.config" | |||
] | |||
} | |||
} |
@ -0,0 +1,30 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp1.1</TargetFramework> | |||
<AssemblyName>UnitTest</AssemblyName> | |||
<PackageId>UnitTest</PackageId> | |||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles> | |||
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion> | |||
<PackageTargetFallback>$(PackageTargetFallback);netstandard1.6.1;dnxcore50;portable-net451+win8</PackageTargetFallback> | |||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | |||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | |||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\src\Services\Ordering\Ordering.API\Ordering.API.csproj" /> | |||
<ProjectReference Include="..\..\..\src\Services\Ordering\Ordering.Infrastructure\Ordering.Infrastructure.csproj" /> | |||
<ProjectReference Include="..\..\..\src\Services\Ordering\Ordering.Domain\Ordering.Domain.csproj" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0-preview-20170106-08" /> | |||
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0-beta5-build1225" /> | |||
<PackageReference Include="MediatR" Version="2.1.0" /> | |||
<PackageReference Include="Moq" Version="4.6.38-alpha" /> | |||
<PackageReference Include="xunit" Version="2.2.0-beta5-build3474" /> | |||
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="1.1.0" /> | |||
</ItemGroup> | |||
</Project> |
@ -1,22 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | |||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||
</PropertyGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | |||
<PropertyGroup Label="Globals"> | |||
<ProjectGuid>7796f5d8-31fc-45a4-b673-19de5ba194cf</ProjectGuid> | |||
<RootNamespace>UnitTest</RootNamespace> | |||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | |||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | |||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SchemaVersion>2.0</SchemaVersion> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | |||
</ItemGroup> | |||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> | |||
</Project> |
@ -1,28 +0,0 @@ | |||
{ | |||
"version": "1.0.0-*", | |||
"dependencies": { | |||
"Microsoft.NETCore.App": { | |||
"type": "platform", | |||
"version": "1.1.0" | |||
}, | |||
"MediatR": "2.1.0", | |||
"Moq": "4.6.38-alpha", | |||
"xunit": "2.2.0-beta4-build3444", | |||
"Microsoft.AspNetCore.TestHost": "1.1.0", | |||
"dotnet-test-xunit": "2.2.0-preview2-build1029", | |||
"Ordering.API": "1.0.0-*", | |||
"Ordering.Infrastructure": "1.0.0-*", | |||
"Ordering.Domain": "1.0.0-*" | |||
}, | |||
"testRunner": "xunit", | |||
"frameworks": { | |||
"netcoreapp1.1": { | |||
"imports": [ | |||
"netstandard1.6.1", | |||
"dnxcore50", | |||
"portable-net451+win8" | |||
] | |||
} | |||
} | |||
} |