Until adding these, the project would not build correctly on a Mac. script working for SPA Add execute permissions to build-bits.sh on macOS fix a rebase / automatic merge issue. Somehow, the MVC image got in there twice. update content nodes Bug workaround for for the CLI. It turns out that the CLI does not handle content nodes that have multiple paths. Instead, multiple nodes are needed. use the standard names for the web docker images. fix a typo and update the csproj content listings. Also, execute nom install as part of publishing the spa application.
Containerized eShop - Basket Service
Sample reference containerized application, cross-platform and microservices architecture. Powered by Microsoft
#Overview This sample runs a microservices oriented application and a .net core Mvc application that consumes this services. You can find more information about how to set up docker in your machine in the global directory solution.
#Deploy In the global directory you will find the scripts needed to run and deploy the demo into your local docker infraestructure.
-
build-image-services-basket.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 this project 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:
- Basket service: http://localhost:5103
- Identity service: http://localhost:5105
- Basket data (Redis): listening in localhost:6379
- Identity data (SQL Server): Server=localhost,5433;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word