Created
December 11, 2018 11:17
-
-
Save ashishnegi/e8f4d4c29bda010c844a2ae0b73088b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========== Publishing ========== | |
Packaging Application... | |
Build started 12/11/2018 4:35:49 PM. | |
Building with tools version "15.0". | |
Target SFAppGetApplicationName: | |
Using "GetApplicationName" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\..\tools\Microsoft.VisualStudio.Azure.SFApp.BuildTasks.dll". | |
Task "GetApplicationName" | |
Done executing task "GetApplicationName". | |
Target SFAppFindServiceProjects: | |
Using "FindServiceProjects" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\..\tools\Microsoft.VisualStudio.Azure.SFApp.BuildTasks.dll". | |
Task "FindServiceProjects" | |
Done executing task "FindServiceProjects". | |
Target "EnableIntermediateOutputPathMismatchWarning" skipped, due to false condition; ('$(RestoreProjectStyle)' == 'PackageReference') was evaluated as ('' == 'PackageReference'). | |
Target _CheckForInvalidConfigurationAndPlatform: | |
Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ). | |
Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ). | |
Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". | |
Task "Message" | |
Configuration=Release | |
Done executing task "Message". | |
Task "Message" | |
Platform=AnyCPU | |
Done executing task "Message". | |
Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('bin\Release\' != '' and !HasTrailingSlash('bin\Release\')). | |
Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')). | |
Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('obj\Release\' != '' and !HasTrailingSlash('obj\Release\')). | |
Task "Error" skipped, due to false condition; ( '$(_InitialMSBuildProjectExtensionsPath)' != '' And '$(MSBuildProjectExtensionsPath)' != '$(_InitialMSBuildProjectExtensionsPath)' ) was evaluated as ( 'C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\obj\' != '' And 'C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\obj\' != 'C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\obj\' ). | |
Task "Warning" skipped, due to false condition; ( '$(EnableBaseIntermediateOutputPathMismatchWarning)' == 'true' And '$(_InitialBaseIntermediateOutputPath)' != '$(BaseIntermediateOutputPath)' And '$(BaseIntermediateOutputPath)' != '$(MSBuildProjectExtensionsPath)' ) was evaluated as ( '' == 'true' And 'obj\' != 'obj\' And 'obj\' != 'C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\obj\' ). | |
Target SFAppBuildApplication: | |
Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". | |
Task "MSBuild" | |
Global Properties: | |
Configuration=Release | |
SFAppErrorLogFilePath=C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\obj\SFApp\SFAppPackageApplication | |
Building with tools version "15.0". | |
Target SFAppInitProperties: | |
Using "Microsoft.VisualStudio.Azure.SFApp.BuildTasks.ResolveAppType" task from assembly "C:\Users\asnegi\.nuget\packages\microsoft.visualstudio.azure.sfapp.targets\1.0.0-preview.7.5\build\..\tools\Microsoft.VisualStudio.Azure.SFApp.BuildTasks.dll". | |
Task "Microsoft.VisualStudio.Azure.SFApp.BuildTasks.ResolveAppType" | |
Done executing task "Microsoft.VisualStudio.Azure.SFApp.BuildTasks.ResolveAppType". | |
Using "Microsoft.VisualStudio.Azure.SFApp.BuildTasks.ResolveTargetFramework" task from assembly "C:\Users\asnegi\.nuget\packages\microsoft.visualstudio.azure.sfapp.targets\1.0.0-preview.7.5\build\..\tools\Microsoft.VisualStudio.Azure.SFApp.BuildTasks.dll". | |
Task "Microsoft.VisualStudio.Azure.SFApp.BuildTasks.ResolveTargetFramework" | |
Done executing task "Microsoft.VisualStudio.Azure.SFApp.BuildTasks.ResolveTargetFramework". | |
Target "SFAppStopRunningNetFrameworkContainerProcess" skipped, due to false condition; ( '$(SFAppTargetFramework)' == 'DotNetFramework' And | |
'$(SFAppAppType)' == 'Console' ) was evaluated as ( 'DotNetCore' == 'DotNetFramework' And | |
'AspNetCore' == 'Console' ). | |
Target "SFAppInitProperties" skipped. Previously built successfully. | |
Target SFAppBuildProject: | |
Task "MSBuild" skipped, due to false condition; ( '$(SFAppAppType)' == 'AspNet' ) was evaluated as ( 'AspNetCore' == 'AspNet' ). | |
Task "MSBuild" skipped, due to false condition; ( '$(SFAppAppType)' == 'Console' And '$(SFAppTargetFramework)' == 'DotNetFramework' ) was evaluated as ( 'AspNetCore' == 'Console' And 'DotNetCore' == 'DotNetFramework' ). | |
Target SFAppContainerCreateDockerfileItems: | |
Target SFAppBuildServiceProject: | |
Using "BuildServiceProject" task from assembly "C:\Users\asnegi\.nuget\packages\microsoft.visualstudio.azure.sfapp.targets\1.0.0-preview.7.5\build\..\tools\Microsoft.VisualStudio.Azure.SFApp.BuildTasks.dll". | |
Task "BuildServiceProject" | |
The Dockerfile 'C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\counterService\Dockerfile' will be used to build image counterservice:dev3 needed by Service counterService, CodePackage counterService. | |
docker build -f "C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\counterService\Dockerfile" -t counterservice:dev3 "C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src" | |
Sending build context to Docker daemon 10.02MB | |
Step 1/16 : FROM microsoft/aspnetcore:2.0-nanoserver-1709 AS base | |
---> 727beec5468a | |
Step 2/16 : WORKDIR /app | |
---> Using cache | |
---> f2d2dea0273e | |
Step 3/16 : EXPOSE 80 | |
---> Using cache | |
---> 986d49ee9b65 | |
Step 4/16 : FROM microsoft/aspnetcore-build:2.0 AS build | |
---> 0f368efa73e0 | |
Step 5/16 : WORKDIR /src | |
---> Using cache | |
---> 63cb2d9d646e | |
Step 6/16 : COPY sfvolume/counterService/counterService.csproj sfvolume/counterService/ | |
---> Using cache | |
---> 6eec8e0ffefb | |
Step 7/16 : RUN dotnet restore sfvolume/counterService/counterService.csproj | |
---> Using cache | |
---> ba6cb650ce6e | |
Step 8/16 : COPY . . | |
---> bd4a643b92a1 | |
Step 9/16 : WORKDIR /src/sfvolume/counterService | |
---> Running in 9d9c904beeed | |
Removing intermediate container 9d9c904beeed | |
---> 4269152ecaab | |
Step 10/16 : RUN dotnet build counterService.csproj -c Release -o /app | |
---> Running in add7c289b878 | |
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Restoring packages for C:\src\sfvolume\counterService\counterService.csproj... | |
Restore completed in 3.43 sec for C:\src\sfvolume\counterService\counterService.csproj. | |
Generating MSBuild file C:\src\sfvolume\counterService\obj\counterService.csproj.nuget.g.props. | |
Generating MSBuild file C:\src\sfvolume\counterService\obj\counterService.csproj.nuget.g.targets. | |
Restore completed in 24.96 sec for C:\src\sfvolume\counterService\counterService.csproj. | |
counterService -> C:\app\counterService.dll | |
Build succeeded. | |
0 Warning(s) | |
0 Error(s) | |
Time Elapsed 00:00:57.02 | |
Removing intermediate container add7c289b878 | |
---> 283483c7ca60 | |
Step 11/16 : FROM build AS publish | |
---> 283483c7ca60 | |
Step 12/16 : RUN dotnet publish counterService.csproj -c Release -o /app | |
---> Running in 8ad437adaad4 | |
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Restore completed in 3.29 sec for C:\src\sfvolume\counterService\counterService.csproj. | |
Restore completed in 5.99 sec for C:\src\sfvolume\counterService\counterService.csproj. | |
counterService -> C:\src\sfvolume\counterService\bin\Release\netcoreapp2.0\counterService.dll | |
counterService -> C:\app\ | |
Removing intermediate container 8ad437adaad4 | |
---> cb24d291e9d5 | |
Step 13/16 : FROM base AS final | |
---> 986d49ee9b65 | |
Step 14/16 : WORKDIR /app | |
---> Using cache | |
---> 10aa4979c1c7 | |
Step 15/16 : COPY --from=publish /app . | |
---> 8057f5ae33b8 | |
Step 16/16 : ENTRYPOINT ["dotnet", "counterService.dll"] | |
---> Running in bae48245f74e | |
Removing intermediate container bae48245f74e | |
---> 808fe0f1b298 | |
Successfully built 808fe0f1b298 | |
Successfully tagged counterservice:dev3 | |
Done executing task "BuildServiceProject". | |
Done building project "counterService.csproj". | |
Done executing task "MSBuild". | |
Target SFAppPackageApplication: | |
Building target "SFAppPackageApplication" completely. | |
No input files were specified. | |
Using "PackageApplication" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\..\tools\Microsoft.VisualStudio.Azure.SFApp.BuildTasks.dll". | |
Task "PackageApplication" | |
C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\SfSbzYamlMerge\SfSbzYamlMerge.exe /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counterService\Service Resources\service.yaml" /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\App Resources\app.yaml" /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\App Resources\network.yaml" /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\App Resources\gateway.yaml" /o:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\bin\Release\SFAppPkg" /of:"SF_SBZ_YAML" | |
type: network | |
name: counterAppNetwork | |
fullyQualifiedResourceName: counterAppNetwork | |
api-version: 6.4-preview | |
description: | |
network: | |
schemaVersion: 1.0.0-preview2 | |
name: counterAppNetwork | |
properties: | |
kind: Local | |
description: Azure Service Fabric Mesh Counter Application network. | |
networkAddressPrefix: 10.0.0.0/24 | |
type: gateway | |
name: counterAppGateway | |
fullyQualifiedResourceName: counterAppGateway | |
api-version: 6.4-preview | |
description: | |
gateway: | |
schemaVersion: 1.0.0-preview2 | |
name: counterAppGateway | |
properties: | |
description: Gateway to connect to public internet. | |
sourceNetwork: | |
name: Open | |
destinationNetwork: | |
name: counterAppNetwork | |
tcp: | |
- name: PublicConnection | |
port: 80 | |
destination: | |
applicationName: counterApp | |
serviceName: counterService | |
endpointName: counterServiceListener | |
type: application | |
name: counterApp | |
fullyQualifiedResourceName: counterApp | |
api-version: 6.4-preview | |
description: | |
application: | |
schemaVersion: 1.0.0-preview2 | |
name: counterApp | |
properties: | |
services: | |
- name: counterService | |
properties: | |
description: A web service that serves the counter value stored in the Service Fabric Reliable Volume. | |
osType: Windows | |
codePackages: | |
- name: counterService | |
image: counterservice:dev3 | |
volumes: | |
- name: sfvol | |
creationParameters: | |
kind: ServiceFabricVolumeDisk | |
sizeDisk: Small | |
destinationPath: C:\app\data | |
endpoints: | |
- name: counterServiceListener | |
port: 80 | |
environmentVariables: | |
- name: STATE_FOLDER_NAME | |
value: CounterService | |
resources: | |
requests: | |
cpu: 0.5 | |
memoryInGB: 1 | |
replicaCount: 1 | |
networkRefs: | |
- name: counterAppNetwork | |
endpointRefs: | |
- name: counterServiceListener | |
description: Azure Service Fabric Mesh Counter Application backed by Service Fabric Reliable Volume. | |
C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\SfSbzYamlMerge\SfSbzYamlMerge.exe /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counterService\Service Resources\service.yaml" /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\App Resources\app.yaml" /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\App Resources\network.yaml" /i:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\App Resources\gateway.yaml" /o:"C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\bin\Release\SFAppPkg" /of:"SF_SBZ_RP_JSON" | |
Merged ARM template and parameters files are located at: C:\Users\asnegi\Documents\service-fabric-mesh\src\counter\src\sfvolume\counter\windows\bin\Release\SFAppPkg | |
Done executing task "PackageApplication". | |
Done building project "counter.sfaproj". | |
Build succeeded. | |
0 Warning(s) | |
0 Error(s) | |
Time Elapsed 00:03:03.11 | |
Uploading the images to Azure Container Registry... | |
docker tag "counterservice:dev3" "counter3.azurecr.io/counterservice:20181211163856" | |
docker push "counter3.azurecr.io/counterservice:20181211163856" | |
The push refers to repository [counter3.azurecr.io/counterservice] | |
1512d7d540b7: Preparing | |
df9e9d10c4f0: Preparing | |
702d2c09e3ca: Preparing | |
92fbfc240937: Preparing | |
9e91d17d0c0d: Preparing | |
5debc8d07919: Preparing | |
b9347ee5feb5: Preparing | |
5debc8d07919: Waiting | |
b9347ee5feb5: Waiting | |
6f132048f755: Preparing | |
67cb5bfec586: Preparing | |
6f132048f755: Waiting | |
616e2dc97883: Preparing | |
67cb5bfec586: Waiting | |
846c06749897: Preparing | |
f796a9be5428: Preparing | |
616e2dc97883: Waiting | |
846c06749897: Waiting | |
7cec8aa149f8: Preparing | |
f796a9be5428: Waiting | |
5efd877aabd1: Preparing | |
67903cf26ef4: Preparing | |
7cec8aa149f8: Waiting | |
5efd877aabd1: Waiting | |
67903cf26ef4: Waiting | |
1512d7d540b7: Pushed | |
df9e9d10c4f0: Pushed | |
92fbfc240937: Pushed | |
9e91d17d0c0d: Pushed | |
702d2c09e3ca: Pushed | |
b9347ee5feb5: Pushed | |
6f132048f755: Pushed | |
67cb5bfec586: Pushed | |
616e2dc97883: Pushed | |
5efd877aabd1: Skipped foreign layer | |
67903cf26ef4: Skipped foreign layer | |
846c06749897: Pushed | |
f796a9be5428: Pushed | |
5debc8d07919: Pushed | |
7cec8aa149f8: Pushed | |
20181211163856: digest: sha256:367ebfc0f6720c50ce59a25406f4e31ac30a5578faa3b08c24a4625036526dae size: 3648 | |
Deploying application to remote endpoint... | |
Validating ARM template. | |
Deploying ARM template. | |
Deployment 20181211163935 started. For status, see https://portal.azure.com/#resource/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourceGroups/counter-rg3/deployments. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment Status: Running. | |
Deployment completed successfully. | |
The application was deployed successfully and the service can be accessed at the following URL: | |
counterService = http://137.135.110.50:80/api/values | |
The application can be managed in the portal at the following URL: | |
https://portal.azure.com/#resource/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourceGroups/counter-rg3/providers/Microsoft.ServiceFabricMesh/applications/counterApp/overview |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment