Skip to content

Commit 3385c63

Browse files
author
Ramón Tomás
committed
Added eShopOnServiceFabric project for Linux
1 parent cc4325c commit 3385c63

157 files changed

Lines changed: 3035 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ServiceFabric/eShopOnServiceFabric/ApplicationPackageRoot/ApplicationManifest.xml renamed to ServiceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/ApplicationManifest.xml

File renamed without changes.

ServiceFabric/eShopOnServiceFabric/ApplicationPackageRoot/BasketApiPkg/Config/Settings.xml renamed to ServiceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/BasketApiPkg/Config/Settings.xml

File renamed without changes.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ServiceManifest Name="BasketApiPkg"
3+
Version="1.0.0"
4+
xmlns="http://schemas.microsoft.com/2011/01/fabric"
5+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7+
<ServiceTypes>
8+
<!-- This is the name of your ServiceType.
9+
The UseImplicitHost attribute indicates this is a guest service. -->
10+
<StatelessServiceType ServiceTypeName="BasketApiType" UseImplicitHost="true" />
11+
</ServiceTypes>
12+
13+
<!-- Code package is your service executable. -->
14+
<CodePackage Name="Code" Version="1.0.0">
15+
<EntryPoint>
16+
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers -->
17+
<ContainerHost>
18+
<ImageName>eshop/basket.api</ImageName>
19+
</ContainerHost>
20+
</EntryPoint>
21+
<!-- Pass environment variables to your container: -->
22+
<EnvironmentVariables>
23+
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/>
24+
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http://0.0.0.0:80"/>
25+
<EnvironmentVariable Name="ConnectionString" Value="basketdata.eshoponservicefabric"/>
26+
<EnvironmentVariable Name="identityUrl" Value="http://identityapi.eshoponservicefabric:5105"/>
27+
<EnvironmentVariable Name="IdentityUrlExternal" Value="http://#{your_sf_dns}#:5105"/>
28+
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/>
29+
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/>
30+
<EnvironmentVariable Name="EventBusUserName" Value="admin"/>
31+
<EnvironmentVariable Name="EventBusPassword" Value="password"/>
32+
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/BasketApi"/>
33+
</EnvironmentVariables>
34+
</CodePackage>
35+
36+
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an
37+
independently-updateable and versioned set of custom configuration settings for your service. -->
38+
<ConfigPackage Name="Config" Version="1.0.0" />
39+
40+
<Resources>
41+
<Endpoints>
42+
<!-- This endpoint is used by the communication listener to obtain the port on which to
43+
listen. Please note that if your service is partitioned, this port is shared with
44+
replicas of different partitions that are placed in your code. -->
45+
<Endpoint Name="BasketApiTypeEndpoint" Port="5103" UriScheme="http" PathSuffix="eShopOnServiceFabric/BasketApi"/>
46+
</Endpoints>
47+
</Resources>
48+
</ServiceManifest>

ServiceFabric/eShopOnServiceFabric/ApplicationPackageRoot/BasketDataPkg/Config/Settings.xml renamed to ServiceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/BasketDataPkg/Config/Settings.xml

File renamed without changes.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ServiceManifest Name="BasketDataPkg"
3+
Version="1.0.0"
4+
xmlns="http://schemas.microsoft.com/2011/01/fabric"
5+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7+
<ServiceTypes>
8+
<!-- This is the name of your ServiceType.
9+
The UseImplicitHost attribute indicates this is a guest service. -->
10+
<StatelessServiceType ServiceTypeName="BasketDataType" UseImplicitHost="true" />
11+
</ServiceTypes>
12+
13+
<!-- Code package is your service executable. -->
14+
<CodePackage Name="Code" Version="1.0.0">
15+
<EntryPoint>
16+
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers -->
17+
<ContainerHost>
18+
<ImageName>redis</ImageName>
19+
</ContainerHost>
20+
</EntryPoint>
21+
<!-- Pass environment variables to your container: -->
22+
<!--
23+
<EnvironmentVariables>
24+
<EnvironmentVariable Name="VariableName" Value="VariableValue"/>
25+
</EnvironmentVariables>
26+
-->
27+
</CodePackage>
28+
29+
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an
30+
independently-updateable and versioned set of custom configuration settings for your service. -->
31+
<ConfigPackage Name="Config" Version="1.0.0" />
32+
33+
<Resources>
34+
<Endpoints>
35+
<!-- This endpoint is used by the communication listener to obtain the port on which to
36+
listen. Please note that if your service is partitioned, this port is shared with
37+
replicas of different partitions that are placed in your code. -->
38+
<Endpoint Name="BasketDataTypeEndpoint" Protocol="tcp" Port="6379"/>
39+
</Endpoints>
40+
</Resources>
41+
</ServiceManifest>

ServiceFabric/eShopOnServiceFabric/ApplicationPackageRoot/CatalogApiPkg/Config/Settings.xml renamed to ServiceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/CatalogApiPkg/Config/Settings.xml

File renamed without changes.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ServiceManifest Name="CatalogApiPkg"
3+
Version="1.0.0"
4+
xmlns="http://schemas.microsoft.com/2011/01/fabric"
5+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7+
<ServiceTypes>
8+
<!-- This is the name of your ServiceType.
9+
The UseImplicitHost attribute indicates this is a guest service. -->
10+
<StatelessServiceType ServiceTypeName="CatalogApiType" UseImplicitHost="true" />
11+
</ServiceTypes>
12+
13+
<!-- Code package is your service executable. -->
14+
<CodePackage Name="Code" Version="1.0.0">
15+
<EntryPoint>
16+
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers -->
17+
<ContainerHost>
18+
<ImageName>eshop/catalog.api</ImageName>
19+
</ContainerHost>
20+
</EntryPoint>
21+
<!-- Pass environment variables to your container: -->
22+
<EnvironmentVariables>
23+
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/>
24+
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http://0.0.0.0:80"/>
25+
<EnvironmentVariable Name="ConnectionString" Value="Data Source=sqlserver.eshoponservicefabric,5433;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"/>
26+
<EnvironmentVariable Name="PicBaseUrl" Value="http://catalogapi.eshoponservicefabric:5101/api/v1/catalog/items/[0]/pic/"/>
27+
<EnvironmentVariable Name="AzureStorageAccountName" Value=""/>
28+
<EnvironmentVariable Name="AzureStorageAccountKey" Value=""/>
29+
<EnvironmentVariable Name="UseCustomizationData" Value="True"/>
30+
<EnvironmentVariable Name="AzureStorageEnabled" Value="False"/>
31+
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/>
32+
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/>
33+
<EnvironmentVariable Name="EventBusUserName" Value="admin"/>
34+
<EnvironmentVariable Name="EventBusPassword" Value="password"/>
35+
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/CatalogApi"/>
36+
</EnvironmentVariables>
37+
</CodePackage>
38+
39+
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an
40+
independently-updateable and versioned set of custom configuration settings for your service. -->
41+
<ConfigPackage Name="Config" Version="1.0.0" />
42+
43+
<Resources>
44+
<Endpoints>
45+
<!-- This endpoint is used by the communication listener to obtain the port on which to
46+
listen. Please note that if your service is partitioned, this port is shared with
47+
replicas of different partitions that are placed in your code. -->
48+
<Endpoint Name="CatalogApiTypeEndpoint" Port="5101" UriScheme="http" PathSuffix="eShopOnServiceFabric/CatalogApi"/>
49+
</Endpoints>
50+
</Resources>
51+
</ServiceManifest>

ServiceFabric/eShopOnServiceFabric/ApplicationPackageRoot/LocationsApiPkg/Config/Settings.xml renamed to ServiceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/LocationsApiPkg/Config/Settings.xml

File renamed without changes.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ServiceManifest Name="LocationsApiPkg"
3+
Version="1.0.0"
4+
xmlns="http://schemas.microsoft.com/2011/01/fabric"
5+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7+
<ServiceTypes>
8+
<!-- This is the name of your ServiceType.
9+
The UseImplicitHost attribute indicates this is a guest service. -->
10+
<StatelessServiceType ServiceTypeName="LocationsApiType" UseImplicitHost="true" />
11+
</ServiceTypes>
12+
13+
<!-- Code package is your service executable. -->
14+
<CodePackage Name="Code" Version="1.0.0">
15+
<EntryPoint>
16+
<!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers -->
17+
<ContainerHost>
18+
<ImageName>eshop/locations.api</ImageName>
19+
</ContainerHost>
20+
</EntryPoint>
21+
<!-- Pass environment variables to your container: -->
22+
<EnvironmentVariables>
23+
<EnvironmentVariable Name="ASPNETCORE_ENVIRONMENT" Value="Development"/>
24+
<EnvironmentVariable Name="ASPNETCORE_URLS" Value="http://0.0.0.0:80"/>
25+
<EnvironmentVariable Name="ConnectionString" Value="mongodb://mongodb.eshoponservicefabric"/>
26+
<EnvironmentVariable Name="Database" Value="LocationsDb"/>
27+
<EnvironmentVariable Name="identityUrl" Value="http://identityapi.eshoponservicefabric:5105"/>
28+
<EnvironmentVariable Name="IdentityUrlExternal" Value=""/>
29+
<EnvironmentVariable Name="EventBusConnection" Value="rabbitmq.eshoponservicefabric"/>
30+
<EnvironmentVariable Name="AzureServiceBusEnabled" Value="False"/>
31+
<EnvironmentVariable Name="EventBusUserName" Value="admin"/>
32+
<EnvironmentVariable Name="EventBusPassword" Value="password"/>
33+
<EnvironmentVariable Name="PATH_BASE" Value="/eShopOnServiceFabric/LocationsApi"/>
34+
</EnvironmentVariables>
35+
</CodePackage>
36+
37+
<!-- Config package is the contents of the Config directoy under PackageRoot that contains an
38+
independently-updateable and versioned set of custom configuration settings for your service. -->
39+
<ConfigPackage Name="Config" Version="1.0.0" />
40+
41+
<Resources>
42+
<Endpoints>
43+
<!-- This endpoint is used by the communication listener to obtain the port on which to
44+
listen. Please note that if your service is partitioned, this port is shared with
45+
replicas of different partitions that are placed in your code. -->
46+
<Endpoint Name="LocationsApiTypeEndpoint" Port="5109" PathSuffix="eShopOnServiceFabric/LocationsApi"/>
47+
</Endpoints>
48+
</Resources>
49+
</ServiceManifest>

ServiceFabric/eShopOnServiceFabric/ApplicationPackageRoot/MarketingApiPkg/Config/Settings.xml renamed to ServiceFabric/Linux/eShopOnServiceFabric/ApplicationPackageRoot/MarketingApiPkg/Config/Settings.xml

File renamed without changes.

0 commit comments

Comments
 (0)