Updated 11. Setting the solution up in Service Fabric (markdown)
parent
27c8abc3e7
commit
38d38de1d0
@ -44,4 +44,48 @@ 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-deployment-status.PNG">
|
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/explorer-deployment-status.PNG">
|
||||||
|
|
||||||
### - Deploying eShopOncontainers as Linux Containers to Azure Service Fabric (TBD)
|
### - Deploying eShopOncontainers as Linux Containers to Azure Service Fabric
|
||||||
|
|
||||||
|
In order to deploy eShopOnContainers as Linux Containers an Azure SF environment must be first set. There is available an ARM template to do that job in the following link [SF Linux ARM deployment](https://github.com/dotnet-architecture/eShopOnContainers/tree/dev/deploy/az/servicefabric/LinuxContainers). Follow the steps in [create SF](https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/deploy/az/servicefabric/LinuxContainers/readme.md).
|
||||||
|
The ARM script will generate all the necessary Azure resources to publish eShopOnContainers as Linux containers.
|
||||||
|
|
||||||
|
Once the SF resources have been successfully created, the next step is to publish the SF projects. These projects are under the directory [SF Directory](https://github.com/dotnet-architecture/eShopOnContainers/tree/dev/ServiceFabric/Linux) and contains all the xml config files needed to configure and publish eShopOnContainers. It is composed by the following SF projects:
|
||||||
|
|
||||||
|
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/sf-directory.PNG">
|
||||||
|
|
||||||
|
- eShopOnServiceFabric: contains all the api services consumed by eShop.
|
||||||
|
- eShopOnServiceFabricIdSrv: contains the Identity server for authentication.
|
||||||
|
- eShopOnServiceFabricWebMVC: contains the MVC web app.
|
||||||
|
- eShopOnServiceFabricWebSPA: containes the SPA web app.
|
||||||
|
- eShopOnServiceFabricWebStatus: contains the web app for service health checking.
|
||||||
|
- eShopOnServiceFabricBus: contains a bus service (Rabbitmq).
|
||||||
|
- eShopOnServiceFabricNoSql: contains a no sql service (MongoDB).
|
||||||
|
- eShopOnServiceFabricRedis: contains a cache service (Redis).
|
||||||
|
- eShopOnServiceFabricSql: contains a sql service (Mssql).
|
||||||
|
|
||||||
|
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="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/cloud-config-idsrv.PNG">
|
||||||
|
|
||||||
|
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/cloud-config-spa.PNG">
|
||||||
|
|
||||||
|
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/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).
|
||||||
|
- Add the existing SF projects in the solution in order to be published.
|
||||||
|
- Right-click on each SF project selecting the publish button. Firstly, publish the infrastructure services [SF infrastructure services](https://github.com/dotnet-architecture/eShopOnContainers/tree/dev/ServiceFabric/Linux/Infrastructure) and once deployed, do the same process for the rest of apps.
|
||||||
|
|
||||||
|
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/publish-button.PNG">
|
||||||
|
|
||||||
|
A new window will be prompted allowing you to select the SF cluster you have previously created.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/sf/explorer-deployment-status.PNG">
|
Loading…
x
Reference in New Issue
Block a user