forked from dotnet-architecture/eShopOnContainers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added eShopOnServiceFabric project for Linux
- Loading branch information
Ramón Tomás
committed
Oct 9, 2017
1 parent
cc4325c
commit 3385c63
Showing
157 changed files
with
3,035 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
...Fabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/BasketApiPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="BasketApiPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="BasketApiType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>eshop/basket.api</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/> | ||
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http:https://0.0.0.0:80"/> | ||
<EnvironmentVariable Name="ConnectionString" Value="basketdata.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="identityUrl" Value="http:https://identityapi.eshoponservicefabric:5105"/> | ||
<EnvironmentVariable Name="IdentityUrlExternal" Value="http:https://#{your_sf_dns}#:5105"/> | ||
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/> | ||
<EnvironmentVariable Name="EventBusUserName" Value="admin"/> | ||
<EnvironmentVariable Name="EventBusPassword" Value="password"/> | ||
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/BasketApi"/> | ||
</EnvironmentVariables> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="BasketApiTypeEndpoint" Port="5103" UriScheme="http" PathSuffix="eShopOnServiceFabric/BasketApi"/> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
...abric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/BasketDataPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="BasketDataPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="BasketDataType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>redis</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<!-- | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="VariableName" Value="VariableValue"/> | ||
</EnvironmentVariables> | ||
--> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="BasketDataTypeEndpoint" Protocol="tcp" Port="6379"/> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
51 changes: 51 additions & 0 deletions
51
...abric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/CatalogApiPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="CatalogApiPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="CatalogApiType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>eshop/catalog.api</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/> | ||
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http:https://0.0.0.0:80"/> | ||
<EnvironmentVariable Name="ConnectionString" Value="Data Source=sqlserver.eshoponservicefabric,5433;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"/> | ||
<EnvironmentVariable Name="PicBaseUrl" Value="http:https://catalogapi.eshoponservicefabric:5101/api/v1/catalog/items/[0]/pic/"/> | ||
<EnvironmentVariable Name="AzureStorageAccountName" Value=""/> | ||
<EnvironmentVariable Name="AzureStorageAccountKey" Value=""/> | ||
<EnvironmentVariable Name="UseCustomizationData" Value="True"/> | ||
<EnvironmentVariable Name="AzureStorageEnabled" Value="False"/> | ||
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/> | ||
<EnvironmentVariable Name="EventBusUserName" Value="admin"/> | ||
<EnvironmentVariable Name="EventBusPassword" Value="password"/> | ||
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/CatalogApi"/> | ||
</EnvironmentVariables> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="CatalogApiTypeEndpoint" Port="5101" UriScheme="http" PathSuffix="eShopOnServiceFabric/CatalogApi"/> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
49 changes: 49 additions & 0 deletions
49
...ric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/LocationsApiPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="LocationsApiPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="LocationsApiType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>eshop/locations.api</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/> | ||
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http:https://0.0.0.0:80"/> | ||
<EnvironmentVariable Name="ConnectionString" Value="mongodb:https://mongodb.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="Database" Value="LocationsDb"/> | ||
<EnvironmentVariable Name="identityUrl" Value="http:https://identityapi.eshoponservicefabric:5105"/> | ||
<EnvironmentVariable Name="IdentityUrlExternal" Value=""/> | ||
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/> | ||
<EnvironmentVariable Name="EventBusUserName" Value="admin"/> | ||
<EnvironmentVariable Name="EventBusPassword" Value="password"/> | ||
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/LocationsApi"/> | ||
</EnvironmentVariables> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="LocationsApiTypeEndpoint" Port="5109" PathSuffix="eShopOnServiceFabric/LocationsApi"/> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
55 changes: 55 additions & 0 deletions
55
...ric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/MarketingApiPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="MarketingApiPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="MarketingApiType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>eshop/marketing.api</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/> | ||
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http:https://0.0.0.0:80"/> | ||
<EnvironmentVariable Name="ConnectionString" Value="Data Source=sqlserver.eshoponservicefabric,5433;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word"/> | ||
<EnvironmentVariable Name="IdentityUrlExternal" Value=""/> | ||
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/> | ||
<EnvironmentVariable Name="CampaignDetailFunctionUri" Value=""/> | ||
<EnvironmentVariable Name="PicBaseUrl" Value="http:https://marketingapi.eshoponservicefabric:5110/api/v1/campaigns/[0]/pic/"/> | ||
<EnvironmentVariable Name="AzureStorageAccountName" Value=""/> | ||
<EnvironmentVariable Name="AzureStorageAccountKey" Value=""/> | ||
<EnvironmentVariable Name="AzureStorageEnabled" Value="False"/> | ||
<EnvironmentVariable Name="EventBusUserName" Value="admin"/> | ||
<EnvironmentVariable Name="EventBusPassword" Value="password"/> | ||
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/MarketingApi"/> | ||
<EnvironmentVariable Name="MongoConnectionString" Value="mongodb:https://mongodb.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="MongoDatabase" Value="MarketingDb"/> | ||
<EnvironmentVariable Name="identityUrl" Value="http:https://identityapi.eshoponservicefabric:5105"/> | ||
</EnvironmentVariables> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="MarketingApiTypeEndpoint" Port="5110" PathSuffix="eShopOnServiceFabric/MarketingApi"/> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
...ceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/MongoDBPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="MongoDBPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="MongoDBType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>mongo</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<!-- | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="VariableName" Value="VariableValue"/> | ||
</EnvironmentVariables> | ||
--> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="MongoDBTypeEndpoint" Protocol="tcp" Port="27017" /> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
51 changes: 51 additions & 0 deletions
51
...bric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/OrderingApiPkg/ServiceManifest.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ServiceManifest Name="OrderingApiPkg" | ||
Version="1.0.0" | ||
xmlns="http:https://schemas.microsoft.com/2011/01/fabric" | ||
xmlns:xsd="http:https://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"> | ||
<ServiceTypes> | ||
<!-- This is the name of your ServiceType. | ||
The UseImplicitHost attribute indicates this is a guest service. --> | ||
<StatelessServiceType ServiceTypeName="OrderingApiType" UseImplicitHost="true" /> | ||
</ServiceTypes> | ||
|
||
<!-- Code package is your service executable. --> | ||
<CodePackage Name="Code" Version="1.0.0"> | ||
<EntryPoint> | ||
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers --> | ||
<ContainerHost> | ||
<ImageName>eshop/ordering.api</ImageName> | ||
</ContainerHost> | ||
</EntryPoint> | ||
<!-- Pass environment variables to your container: --> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/> | ||
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http:https://0.0.0.0:80"/> | ||
<EnvironmentVariable Name="ConnectionString" Value="Data Source=sqlserver.eshoponservicefabric,5433;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word"/> | ||
<EnvironmentVariable Name="identityUrl" Value="http:https://identityapi.eshoponservicefabric:5105"/> | ||
<EnvironmentVariable Name="IdentityUrlExternal" Value=""/> | ||
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/> | ||
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/> | ||
<EnvironmentVariable Name="UseCustomizationData" Value="True"/> | ||
<EnvironmentVariable Name="GracePeriodTime" Value="1"/> | ||
<EnvironmentVariable Name="CheckUpdateTime" Value="30000"/> | ||
<EnvironmentVariable Name="EventBusUserName" Value="admin"/> | ||
<EnvironmentVariable Name="EventBusPassword" Value="password"/> | ||
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/OrderingApi"/> | ||
</EnvironmentVariables> | ||
</CodePackage> | ||
|
||
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an | ||
independently-updateable and versioned set of custom configuration settings for your service. --> | ||
<ConfigPackage Name="Config" Version="1.0.0" /> | ||
|
||
<Resources> | ||
<Endpoints> | ||
<!-- This endpoint is used by the communication listener to obtain the port on which to | ||
listen. Please note that if your service is partitioned, this port is shared with | ||
replicas of different partitions that are placed in your code. --> | ||
<Endpoint Name="OrderingApiTypeEndpoint" Port="5102" UriScheme="http" PathSuffix="eShopOnServiceFabric/OrderingApi"/> | ||
</Endpoints> | ||
</Resources> | ||
</ServiceManifest> |
File renamed without changes.
Oops, something went wrong.