Javier Suárez Ruiz 6f04cd1f00 | 8 years ago | |
---|---|---|
img | 8 years ago | |
src | 8 years ago | |
test/Services/FunctionalTests | 8 years ago | |
.gitattributes | 8 years ago | |
.gitignore | 8 years ago | |
LICENSE | 8 years ago | |
NuGet.config | 8 years ago | |
README.md | 8 years ago | |
add-host-entry.ps1 | 8 years ago | |
build-image-service-basket.ps1 | 8 years ago | |
build-image-service-catalog.ps1 | 8 years ago | |
build-image-service-identity.ps1 | 8 years ago | |
build-image-service-orders.ps1 | 8 years ago | |
build-image-web-spa.ps1 | 8 years ago | |
build-image-web.ps1 | 8 years ago | |
build-images.ps1 | 8 years ago | |
build-images.sh | 8 years ago | |
docker-compose.yml | 8 years ago | |
eShopOnContainers.sln | 8 years ago | |
global.json | 8 years ago |
Sample reference containerized application, cross-platform and microservices architecture. Powered by Microsoft
#Overview In this repo you will fin samples that will help you to get introduced into .net core, microservices environment and docker.
#Tools
####Mac Docker tools for Mac
##Set up Cpu and Memory In this demo we will run 3 instances of SQL Server, 6 asp.net core applications and 1 redis server it's important to set up properly the Cpu and Ram assigned to docker. This can be set, once installed docker in your device through the whale icon, right click, settings and in the Advanced option you will need to adjust the default to the new values shown in the image:
#Demo The demo scenario is based on a ecommerce shop, each service is a .net core web application (basket, catalog, ordering, identity) and this services are consumed by differents web and mobile applications.
MVC Application: Its an Mvc 6 development where you can find good samples about how to work with microservices in a MVC asp.net core application.
SPA Application: Developed with Angular2, Typescript and Mvc 6, is another different aproach in web on how to work in a Microservices oriented solution.
Xamarin Application (Ios, Windows, Android): Its a client application that run in mobile devices (ios, android, windows) and you can find another example on how to build a microservices oriented application.
#Deploy goblal In the global directory you will find the scripts needed to run and deploy the demo into your local docker infraestructure. The steps:
build-images.ps1 Build .net applications and docker images: This power shell script that you will find in the root directory of the solution is the responsible of building .net applications and package in a pub folder and use docker commands to build the images needed to run the previously packaged .net applications.
Compose containers in your docker local VM: Finally you have to open your favourite command tool pointing to the root directory of the solution where docker-compose.yml file is located and run the command docker-compose up
#Run Once the deploy process of docker-compose finishes you have to be able to access the services in this urls from your machine:
#Deploy individiual services into docker Under each project root you will find a readme.md file as this that describes how to run and deploy the service individually into a docker container.