Skip to content

Commit 6ce3769

Browse files
Merge pull request dotnet-architecture#46 from dotnet-architecture/dev
fork eShopOnContainers
2 parents 5282909 + e3daacb commit 6ce3769

177 files changed

Lines changed: 1563 additions & 2923 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,6 @@ pub/
263263
/src/Web/WebMVC/wwwroot/css/site.min.css
264264
**/.kube/**
265265
.mfractor
266+
267+
# Ignore HealthCheckdb
268+
*healthchecksdb*

NuGet.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<add key="repositoryPath" value="packages" />
55
</config>
66
<packageSources>
7+
<add key="Preview-aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json"/>
8+
<add key="Preview-aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json"/>
9+
<add key="Preview-aspnetcore" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json"/>
710
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnet-feb2017-patch/api/v3/index.json" />
811
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
912
</packageSources>

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Sample .NET Core reference application, powered by Microsoft, based on a simplified microservices architecture and Docker containers.
33

44
## IMPORTANT NOTES!
5-
**The current supported Visual Studio version for eShopOnContainers is Visual Studio 2017 15.7** ([GA/RTM since May 8th 2018](https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes)) or later version.
5+
**You can use either the latest version of Visual Studio or simply Docker CLI and .NET CLI for Windows, Mac and Linux**.
66

77
**Note for Pull Requests (PRs)**: We accept pull request from the community. When doing it, please do it onto the **DEV branch** which is the consolidated work-in-progress branch. Do not request it onto Master branch, if possible.
88

99
**NEWS / ANNOUNCEMENTS**
1010
Do you want to be up-to-date on .NET Architecture guidance and reference apps like eShopOnContainers? --> Subscribe by "WATCHING" this new GitHub repo: https://github.com/dotnet-architecture/News
1111

12-
## Updated for .NET Core 2.0 and 2.1 "wave" of technologies
13-
eShopOnContainers is updated to .NET Core 2.0 and 2.1 "wave". Not just compilation but also new recommended code in EF Core, ASP.NET Core, and other new related versions.
12+
## Updated for .NET Core 2.2 "wave" of technologies
13+
eShopOnContainers is updated to .NET Core 2.x (currently updated to 2.2) "wave" of technologies. Not just compilation but also new recommended code in EF Core, ASP.NET Core, and other new related versions.
1414

1515
The **dockerfiles** in the solution have also been updated and now support [**Docker Multi-Stage**](https://blogs.msdn.microsoft.com/stevelasker/2017/09/11/net-and-multistage-dockerfiles/) since mid-December 2017.
1616

@@ -70,7 +70,7 @@ You can download them and start reviewing these Guides/eBooks here:
7070
| Architecting & Developing | Containers Lifecycle & CI/CD | App patterns with Xamarin.Forms |
7171
| ------------ | ------------| ------------|
7272
| <a href='https://aka.ms/microservicesebook'><img src="img/ebook_arch_dev_microservices_containers_cover.png"> </a> | <a href='https://aka.ms/dockerlifecycleebook'> <img src="img/ebook_containers_lifecycle.png"> </a> | <a href='https://aka.ms/xamarinpatternsebook'> <img src="img/xamarin-enterprise-patterns-ebook-cover-small.png"> </a> |
73-
| <sup> <a href='https://aka.ms/microservicesebook'>**Download .PDF** (v2.1 Edition)</a> </sup> | <sup> <a href='https://aka.ms/dockerlifecycleebook'>**Download** </a> </sup> | <sup> <a href='https://aka.ms/xamarinpatternsebook'>**Download** </a> </sup> |
73+
| <sup> <a href='https://aka.ms/microservicesebook'>**Download .PDF** (v2.2 Edition)</a> </sup> | <sup> <a href='https://aka.ms/dockerlifecycleebook'>**Download** </a> </sup> | <sup> <a href='https://aka.ms/xamarinpatternsebook'>**Download** </a> </sup> |
7474

7575
Download in other formats (**eReaders** like **MOBI**, **EPUB**) and other eBooks at the [.NET Architecture center](http://dot.net/architecture).
7676

docker-compose.override.yml

Lines changed: 87 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ services:
187187
environment:
188188
- ASPNETCORE_ENVIRONMENT=Development
189189
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
190+
- urls__basket=http://basket.api
191+
- urls__catalog=http://catalog.api
192+
- urls__orders=http://ordering.api
193+
- urls__identity=http://identity.api
194+
- CatalogUrlHC=http://catalog.api/hc
195+
- OrderingUrlHC=http://ordering.api/hc
196+
- IdentityUrlHC=http://identity.api/hc
197+
- BasketUrlHC=http://basket.api/hc
198+
- MarketingUrlHC=http://marketing.api/hc
199+
- PaymentUrlHC=http://payment.api/hc
200+
- LocationUrlHC=http://locations.api/hc
190201
ports:
191202
- "5200:80"
192203
volumes:
@@ -196,6 +207,13 @@ services:
196207
environment:
197208
- ASPNETCORE_ENVIRONMENT=Development
198209
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
210+
- CatalogUrlHC=http://catalog.api/hc
211+
- OrderingUrlHC=http://ordering.api/hc
212+
- IdentityUrlHC=http://identity.api/hc
213+
- BasketUrlHC=http://basket.api/hc
214+
- MarketingUrlHC=http://marketing.api/hc
215+
- PaymentUrlHC=http://payment.api/hc
216+
- LocationUrlHC=http://locations.api/hc
199217
ports:
200218
- "5201:80"
201219
volumes:
@@ -205,6 +223,13 @@ services:
205223
environment:
206224
- ASPNETCORE_ENVIRONMENT=Development
207225
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
226+
- CatalogUrlHC=http://catalog.api/hc
227+
- OrderingUrlHC=http://ordering.api/hc
228+
- IdentityUrlHC=http://identity.api/hc
229+
- BasketUrlHC=http://basket.api/hc
230+
- MarketingUrlHC=http://marketing.api/hc
231+
- PaymentUrlHC=http://payment.api/hc
232+
- LocationUrlHC=http://locations.api/hc
208233
ports:
209234
- "5202:80"
210235
volumes:
@@ -214,6 +239,13 @@ services:
214239
environment:
215240
- ASPNETCORE_ENVIRONMENT=Development
216241
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
242+
- CatalogUrlHC=http://catalog.api/hc
243+
- OrderingUrlHC=http://ordering.api/hc
244+
- IdentityUrlHC=http://identity.api/hc
245+
- BasketUrlHC=http://basket.api/hc
246+
- MarketingUrlHC=http://marketing.api/hc
247+
- PaymentUrlHC=http://payment.api/hc
248+
- LocationUrlHC=http://locations.api/hc
217249
ports:
218250
- "5203:80"
219251
volumes:
@@ -226,6 +258,13 @@ services:
226258
- urls__catalog=http://catalog.api
227259
- urls__orders=http://ordering.api
228260
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
261+
- CatalogUrlHC=http://catalog.api/hc
262+
- OrderingUrlHC=http://ordering.api/hc
263+
- IdentityUrlHC=http://identity.api/hc
264+
- BasketUrlHC=http://basket.api/hc
265+
- MarketingUrlHC=http://marketing.api/hc
266+
- PaymentUrlHC=http://payment.api/hc
267+
- LocationUrlHC=http://locations.api/hc
229268
ports:
230269
- "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
231270
# The API Gateway redirects and access through the internal port (80).
@@ -237,6 +276,13 @@ services:
237276
- urls__catalog=http://catalog.api
238277
- urls__orders=http://ordering.api
239278
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
279+
- CatalogUrlHC=http://catalog.api/hc
280+
- OrderingUrlHC=http://ordering.api/hc
281+
- IdentityUrlHC=http://identity.api/hc
282+
- BasketUrlHC=http://basket.api/hc
283+
- MarketingUrlHC=http://marketing.api/hc
284+
- PaymentUrlHC=http://payment.api/hc
285+
- LocationUrlHC=http://locations.api/hc
240286
ports:
241287
- "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
242288
# The API Gateway redirects and access through the internal port (80).
@@ -259,16 +305,41 @@ services:
259305
environment:
260306
- ASPNETCORE_ENVIRONMENT=Development
261307
- ASPNETCORE_URLS=http://0.0.0.0:80
262-
- CatalogUrl=http://catalog.api/hc
263-
- OrderingUrl=http://ordering.api/hc
308+
- HealthChecks-UI__HealthChecks__1__Name=WebMVC HTTP Check
309+
- HealthChecks-UI__HealthChecks__1__Uri=http://webmvc/hc
310+
- HealthChecks-UI__HealthChecks__2__Name=WebSPA HTTP Check
311+
- HealthChecks-UI__HealthChecks__2__Uri=http://webspa/hc
312+
- HealthChecks-UI__HealthChecks__3__Name=Web Shopping Aggregator GW HTTP Check
313+
- HealthChecks-UI__HealthChecks__3__Uri=http://webshoppingagg/hc
314+
- HealthChecks-UI__HealthChecks__4__Name=Mobile Shopping Aggregator HTTP Check
315+
- HealthChecks-UI__HealthChecks__4__Uri=http://mobileshoppingagg/hc
316+
- HealthChecks-UI__HealthChecks__5__Name=Mobile Shopping API GW HTTP Check
317+
- HealthChecks-UI__HealthChecks__5__Uri=http://mobileshoppingapigw/hc
318+
- HealthChecks-UI__HealthChecks__6__Name=Mobile Marketing API GW HTTP Check
319+
- HealthChecks-UI__HealthChecks__6__Uri=http://mobilemarketingapigw/hc
320+
- HealthChecks-UI__HealthChecks__7__Name=Web Shopping API GW HTTP Check
321+
- HealthChecks-UI__HealthChecks__7__Uri=http://webshoppingapigw/hc
322+
- HealthChecks-UI__HealthChecks__8__Name=Web Marketing API GW HTTP Check
323+
- HealthChecks-UI__HealthChecks__8__Uri=http://webmarketingapigw/hc
324+
- HealthChecks-UI__HealthChecks__9__Name=Ordering HTTP Check
325+
- HealthChecks-UI__HealthChecks__9__Uri=http://ordering.api/hc
326+
- HealthChecks-UI__HealthChecks__10__Name=Ordering HTTP Background Check
327+
- HealthChecks-UI__HealthChecks__10__Uri=http://ordering.backgroundtasks/hc
328+
- HealthChecks-UI__HealthChecks__11__Name=Basket HTTP Check
329+
- HealthChecks-UI__HealthChecks__11__Uri=http://basket.api/hc
330+
- HealthChecks-UI__HealthChecks__12__Name=Catalog HTTP Check
331+
- HealthChecks-UI__HealthChecks__12__Uri=http://catalog.api/hc
332+
- HealthChecks-UI__HealthChecks__13__Name=Identity HTTP Check
333+
- HealthChecks-UI__HealthChecks__13__Uri=http://identity.api/hc
334+
- HealthChecks-UI__HealthChecks__14__Name=Marketing HTTP Check
335+
- HealthChecks-UI__HealthChecks__14__Uri=http://marketing.api/hc
336+
- HealthChecks-UI__HealthChecks__15__Name=Locations HTTP Check
337+
- HealthChecks-UI__HealthChecks__15__Uri=http://locations.api/hc
338+
- HealthChecks-UI__HealthChecks__16__Name=Payments HTTP Check
339+
- HealthChecks-UI__HealthChecks__16__Uri=http://payment.api/hc
340+
- HealthChecks-UI__HealthChecks__17__Name=Ordering SignalRHub HTTP Check
341+
- HealthChecks-UI__HealthChecks__17__Uri=http://ordering.signalrhub/hc
264342
- OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
265-
- BasketUrl=http://basket.api/hc
266-
- IdentityUrl=http://identity.api/hc
267-
- LocationsUrl=http://locations.api/hc
268-
- MarketingUrl=http://marketing.api/hc
269-
- PaymentUrl=http://payment.api/hc
270-
- mvc=http://webmvc/hc
271-
- spa=http://webspa/hc
272343
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
273344
- OrchestratorType=${ORCHESTRATOR_TYPE}
274345
ports:
@@ -281,12 +352,9 @@ services:
281352
- IdentityUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
282353
- PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
283354
- MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
284-
- CatalogUrlHC=http://catalog.api/hc
285-
- OrderingUrlHC=http://ordering.api/hc
286-
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
287-
- BasketUrlHC=http://basket.api/hc
288-
- MarketingUrlHC=http://marketing.api/hc
289-
- PaymentUrlHC=http://payment.api/hc
355+
- PurchaseUrlHC=http://webshoppingapigw/hc
356+
- MarketingUrlHC=http://webmarketingapigw/hc
357+
- IdentityUrlHC=http://identity.api/hc
290358
- UseCustomizationData=True
291359
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
292360
- OrchestratorType=${ORCHESTRATOR_TYPE}
@@ -300,14 +368,11 @@ services:
300368
- ASPNETCORE_URLS=http://0.0.0.0:80
301369
- PurchaseUrl=http://webshoppingapigw
302370
- IdentityUrl=http://10.0.75.1:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
303-
- MarketingUrl=http://webmarketingapigw
304-
- CatalogUrlHC=http://catalog.api/hc
305-
- OrderingUrlHC=http://ordering.api/hc
306-
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
307-
- BasketUrlHC=http://basket.api/hc
308-
- MarketingUrlHC=http://marketing.api/hc
309-
- PaymentUrlHC=http://payment.api/hc
371+
- MarketingUrl=http://webmarketingapigw
310372
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
373+
- IdentityUrlHC=http://identity.api/hc
374+
- PurchaseUrlHC=http://webshoppingapigw/hc
375+
- MarketingUrlHC=http://webmarketingapigw/hc
311376
- UseCustomizationData=True
312377
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
313378
- OrchestratorType=${ORCHESTRATOR_TYPE}
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)