Updated 11. Setting the solution up in Service Fabric (markdown)

RamonTC 2017-09-13 13:39:15 +02:00
parent a8b444796f
commit e94a7d7ab0

@ -1,7 +1,5 @@
### - Deploying eShopOncontainers as Windows Containers to Azure Service Fabric
![test](eShopOnContainers/img/sf/sf-directory.PNG)
In order to deploy eShopOnContainers as Windows Containers an Azure SF environment must be first set. There is available an ARM template to do that job in the following link [SF Win ARM deployment](https://github.com/dotnet-architecture/eShopOnContainers/tree/eShopOnServiceFabric-Win/deploy/az/servicefabric/WindowsContainers). Follow the steps in [create SF](https://github.com/dotnet-architecture/eShopOnContainers/blob/eShopOnServiceFabric-Win/deploy/az/servicefabric/WindowsContainers/readme.md).
The ARM script will generate all the necessary Azure resources to publish eShopOnContainers as windows containers.
@ -17,26 +15,26 @@ Once the SF resources have been successfully created, the next step is to publis
Before deploying, replace **ALL** the external urls in the cloud.xml config file of each SF app which reference the SF dns name with the dns name of your SF. Example:
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/cloud-config.png">
<img src="img/sf/cloud-config.png">
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/cloud-config-idsrv.png">
<img src="img/sf/cloud-config-idsrv.png">
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/cloud-config-spa.png">
<img src="img/sf/cloud-config-spa.png">
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/cloud-config-mvc.png">
<img src="img/sf/cloud-config-mvc.png">
To deploy the SF apps, open the eShopOnContainers-ServicesAndWebApps.sln with vs2017 (Service Fabric SDK installation must be installed) and right-click on each SF project selecting the publish button.
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/publish-button.png">
<img src="img/sf/publish-button.png">
A new window will be prompted allowing you to select the SF cluster you have previously created.
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/publish-window.png">
<img src="img/sf/publish-window.png">
Open the SF explorer page to check out the deployment and healthcheck status.
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/explorer-apps-status.png">
<img src="img/sf/explorer-apps-status.png">
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/explorer-deployment-status.png">
<img src="img/sf/explorer-deployment-status.png">
### - Deploying eShopOncontainers as Linux Containers to Azure Service Fabric (TBD)