Skip to content

Commit dea392c

Browse files
author
Ramón Tomás
committed
Created Azure function deployment readme
Created Storage account deployment readme Updated index readme Update docker-compose prod files
1 parent cc18aa0 commit dea392c

8 files changed

Lines changed: 144 additions & 11 deletions

File tree

deploy/az/azurefunctions/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ The ARM template `azurefunctionsdeploy.json` and its parameter file (`azurefunct
44

55
## Editing azurefunctionsdeploy.parameters.json file
66

7-
You can edit the `azurefunctionsdeploy.parameters.parameters.json` file to set your values, but is not needed.
7+
You can edit the `azurefunctionsdeploy.parameters.parameters.json` file to set your values, but is not needed. The only parameter that can be set is:
8+
9+
1. `SitesEshopfunctionsName` is a string that is used to create the Azure function app name.
810

911
## Deploy the template
1012

deploy/az/cosmos/readme.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Deploying Azure Cosmosdb
2+
3+
The ARM template `deploycosmos.json` and its parameter file (`deploycosmos.parameters.json`) are used to deploy following resources:
4+
5+
1. One Cosmosdb database
6+
7+
## Editing deploycosmos.parameters.json file
8+
9+
You can edit the `deploycosmos.parameters.json` file to set your values, but is not needed. The only parameter that can
10+
be set is:
11+
12+
1. `name` is a string that is used to create the database name. ARM script creates unique values by appending a unique string to this parameter value, so you can leave the default value.
13+
14+
## Deploy the template
15+
16+
Once parameter file is edited you can deploy it using [create-resources script](../readme.md).
17+
18+
i. e. if you are in windows, to deploy a Cosmosdb database in a new resourcegroup located in westus, go to `deploy\az` folder and type:
19+
20+
```
21+
create-resources.cmd cosmos\deploycosmos newResourceGroup -c westus
22+
```
23+
24+
25+
26+
27+
28+
29+
30+
31+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Deploying Catalog Storage
2+
3+
The ARM template `deploystorage.json` and its parameter file (`deploystorage.parameters.json`) are used to deploy following resources:
4+
5+
1. One Storage Account
6+
2. One CDN profile
7+
3. One Endpoint
8+
9+
## Editing deploystorage.parameters.json file
10+
11+
You can edit the `deploystorage.parameters.json` file to set your values, but is not needed. The only parameters that can
12+
be set are:
13+
14+
1. `catalogstorage` is a string that is used to create the storage account name. ARM script creates unique values by appending a unique string to this parameter value, so you can leave the default value.
15+
16+
2. `profileName` is a string that is used to create the CDN profile name.
17+
18+
3. `endpointName` is a string that is used to create the storage endpoint name. ARM script creates unique values by appending a unique string to this parameter value, so you can leave the default value.
19+
20+
## Deploy the template
21+
22+
Once parameter file is edited you can deploy it using [create-resources script](../../readme.md).
23+
24+
i. e. if you are in windows, to deploy a Storage Account in a new resourcegroup located in westus, go to `deploy\az` folder and type:
25+
26+
```
27+
create-resources.cmd catalog\deploystorage newResourceGroup -c westus
28+
```
29+
30+
31+
32+
33+
34+
35+
36+
37+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Deploying Marketing Storage
2+
3+
The ARM template `deploystorage.json` and its parameter file (`deploystorage.parameters.json`) are used to deploy following resources:
4+
5+
1. One Storage Account
6+
2. One CDN profile
7+
3. One Endpoint
8+
9+
## Editing deploystorage.parameters.json file
10+
11+
You can edit the `deploystorage.parameters.json` file to set your values, but is not needed. The only parameters that can
12+
be set are:
13+
14+
1. `marketingstorage` is a string that is used to create the storage account name. ARM script creates unique values by appending a unique string to this parameter value, so you can leave the default value.
15+
16+
2. `profileName` is a string that is used to create the CDN profile name.
17+
18+
3. `endpointName` is a string that is used to create the storage endpoint name. ARM script creates unique values by appending a unique string to this parameter value, so you can leave the default value.
19+
20+
## Deploy the template
21+
22+
Once parameter file is edited you can deploy it using [create-resources script](../../readme.md).
23+
24+
i. e. if you are in windows, to deploy a Storage account in a new resourcegroup located in westus, go to `deploy\az` folder and type:
25+
26+
```
27+
create-resources.cmd marketing\deploystorage newResourceGroup -c westus
28+
```
29+
30+
31+
32+
33+
34+
35+
36+
37+

deploy/readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Using `docker-machine` is the recommended way to create a VM with docker install
2020
1. [Deploying SQL Server and databases](az/sql/readme.md)
2121
2. [Deploying Azure Service Bus](az/servicebus/readme.md)
2222
3. [Deploying Redis Cache](az/redis/readme.md)
23+
4. [Deploying Cosmosdb](az/cosmos/readme.md)
24+
5. [Deploying Catalog Storage](az/storage/catalog/readme.md)
25+
6. [Deploying Marketing Storage](az/storage/marketing/readme.md)
26+
7. [Deploying Marketing Azure functions](az/azurefunctions/readme.md)
2327

2428

2529

docker-compose-windows.override.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ services:
3131
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
3232
- UseCustomizationData=True
3333
- AzureServiceBusEnabled=False
34+
- AzureStorageEnabled=False
3435
ports:
3536
- "5101:80"
3637

@@ -133,14 +134,15 @@ services:
133134
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
134135
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
135136
- AzureServiceBusEnabled=False
137+
- AzureStorageEnabled=False
136138
ports:
137139
- "5110:80"
138140

139141
graceperiodmanager:
140142
environment:
141143
- ASPNETCORE_ENVIRONMENT=Development
142144
- ASPNETCORE_URLS=http://0.0.0.0:80
143-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
145+
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
144146
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
145147
- AzureServiceBusEnabled=False
146148

docker-compose-windows.prod.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
2222
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
2323
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
24+
- AzureServiceBusEnabled=False
2425
ports:
2526
- "5103:5103"
2627

@@ -29,11 +30,13 @@ services:
2930
- ASPNETCORE_ENVIRONMENT=Production
3031
- ASPNETCORE_URLS=http://0.0.0.0:80
3132
- ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
32-
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG} #Local: You need to open your local dev-machine firewall at range 5100-5110.
33+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG:-http://localhost:5101/api/v1/catalog/items/[0]/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
3334
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
3435
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
3536
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
3637
- UseCustomizationData=True
38+
- AzureServiceBusEnabled=False
39+
- AzureStorageEnabled=False
3740
ports:
3841
- "5101:80"
3942

@@ -62,6 +65,7 @@ services:
6265
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
6366
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
6467
- UseCustomizationData=True
68+
- AzureServiceBusEnabled=False
6569
ports:
6670
- "5102:80"
6771

@@ -92,6 +96,7 @@ services:
9296
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
9397
- BasketUrl=http://basket.api
9498
- MarketingUrl=http://marketing.api
99+
- UseCustomizationData=True #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
95100
ports:
96101
- "5100:80"
97102

@@ -106,17 +111,19 @@ services:
106111
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
107112
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
108113
- CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
109-
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING}
114+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
110115
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
111116
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
117+
- AzureServiceBusEnabled=False
118+
- AzureStorageEnabled=False
112119
ports:
113120
- "5110:80"
114121

115122
graceperiodmanager:
116123
environment:
117124
- ASPNETCORE_ENVIRONMENT=Production
118125
- ASPNETCORE_URLS=http://0.0.0.0:80
119-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
126+
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
120127
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
121128

122129
sql.data:
@@ -151,6 +158,7 @@ services:
151158
- ASPNETCORE_ENVIRONMENT=Production
152159
- ASPNETCORE_URLS=http://0.0.0.0:5108
153160
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
161+
- AzureServiceBusEnabled=False
154162
ports:
155163
- "5108:80"
156164

@@ -163,5 +171,6 @@ services:
163171
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
164172
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
165173
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
174+
- AzureServiceBusEnabled=False
166175
ports:
167176
- "5109:80"

docker-compose.prod.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
2222
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
2323
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
24+
- AzureServiceBusEnabled=False
2425
ports:
2526
- "5103:80"
2627

@@ -29,11 +30,13 @@ services:
2930
- ASPNETCORE_ENVIRONMENT=Production
3031
- ASPNETCORE_URLS=http://0.0.0.0:80
3132
- ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
32-
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL} #Local: You need to open your local dev-machine firewall at range 5100-5110.
33+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5101/api/v1/catalog/items/[0]/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
3334
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
3435
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
3536
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
3637
- UseCustomizationData=True
38+
- AzureServiceBusEnabled=False
39+
- AzureStorageEnabled=False
3740
ports:
3841
- "5101:80"
3942

@@ -62,6 +65,7 @@ services:
6265
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
6366
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
6467
- UseCustomizationData=True
68+
- AzureServiceBusEnabled=False
6569
ports:
6670
- "5102:80"
6771

@@ -73,21 +77,24 @@ services:
7377
- MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
7478
- MongoDatabase=MarketingDb
7579
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
76-
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
80+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
7781
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
7882
- CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
79-
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL}
83+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
8084
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
8185
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
86+
- AzureServiceBusEnabled=False
87+
- AzureStorageEnabled=False
8288
ports:
8389
- "5110:80"
8490

8591
graceperiodmanager:
8692
environment:
8793
- ASPNETCORE_ENVIRONMENT=Production
8894
- ASPNETCORE_URLS=http://0.0.0.0:80
89-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
95+
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
9096
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
97+
- AzureServiceBusEnabled=False
9198

9299
webspa:
93100
environment:
@@ -113,9 +120,11 @@ services:
113120
- ASPNETCORE_URLS=http://0.0.0.0:80
114121
- CatalogUrl=http://catalog.api
115122
- OrderingUrl=http://ordering.api
116-
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
117123
- BasketUrl=http://basket.api
118-
- MarketingUrl=http://marketing.api
124+
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
125+
- MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
126+
#Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
127+
- UseCustomizationData=True
119128
ports:
120129
- "5100:80"
121130

@@ -151,6 +160,7 @@ services:
151160
- ASPNETCORE_ENVIRONMENT=Production
152161
- ASPNETCORE_URLS=http://0.0.0.0:5108
153162
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
163+
- AzureServiceBusEnabled=False
154164
ports:
155165
- "5108:80"
156166

@@ -163,5 +173,6 @@ services:
163173
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
164174
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
165175
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
176+
- AzureServiceBusEnabled=False
166177
ports:
167178
- "5109:80"

0 commit comments

Comments
 (0)