From cc7c34dfe41f456cbcf469bb4164d55660c31c80 Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Date: Thu, 4 Jan 2018 16:44:59 -0800 Subject: [PATCH] Updated 08. Setting up and Deploying eShopOnContainers to Windows Containers (markdown) --- ...g-eShopOnContainers-to-Windows-Containers.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/08.-Setting-up-and-Deploying-eShopOnContainers-to-Windows-Containers.md b/08.-Setting-up-and-Deploying-eShopOnContainers-to-Windows-Containers.md index cc3e010..70b8245 100644 --- a/08.-Setting-up-and-Deploying-eShopOnContainers-to-Windows-Containers.md +++ b/08.-Setting-up-and-Deploying-eShopOnContainers-to-Windows-Containers.md @@ -24,21 +24,30 @@ In Windows 10 you need to set Docker to use "Windows container" instead of Linux Then right click in the Docker icon on the notification bar and select the option "Switch to Windows Containers". If you don't see this option and see the option "Switch to Linux Containers" you're already using windows containers. ## Deploy Windows Containers of eShopOnContaners -Since eShopOnContainers is using Docker Multi-Stage builds, th ecompilation of the .NET application bits is now performed by Docker itself right before building the Docker images. +Since eShopOnContainers is using Docker Multi-Stage builds, the compilation of the .NET application bits is now performed by Docker itself right before building the Docker images. -You can directly run `docker-compose build`: +The esasiest way to run/start the Windows Containers of eShopOnContainers is by running this PowerShell script: +`start-windows-containers.ps1` + +You can find this script at /cli-windows/start-windows-containers.ps1 + +Otherwise, if you run it directly with `docker-compose up` see the section below on the environment variables you will also need to configure. + +Under the covers, in any case, the important commands are the following: + +Build bits and Docker images: ``` docker-compose -f docker-compose-windows.yml build ``` -Then deploy the containers with the specific configuration for Windows Containers: +Deploy the containers with the specific configuration for Windows Containers: ``` docker-compose -f docker-compose-windows.yml -f docker-compose.override.yml -f docker-compose.override.windows.yml up ``` -**Note**: You need to use these three files when running docker-compose up. +**IMPORTANT**: You need to use these three files when running docker-compose up and to have te environment variables related to the localhost loopback limitation mentioned at the end of this post. ## RabbitMQ user and password