From ee8dbf507cf654f79ed484ad77996320d98c1c97 Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Date: Wed, 3 Jan 2018 13:29:03 -0800 Subject: [PATCH] Updated 04. Setting eShopOnContainer solution up in a Mac, VS for Mac or with CLI environment (dotnet CLI, Docker CLI and VS Code) (markdown) --- ...CLI-environment--(dotnet-CLI,-Docker-CLI-and-VS-Code).md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/04.-Setting-eShopOnContainer-solution-up-in-a-Mac,-VS-for-Mac-or-with-CLI-environment--(dotnet-CLI,-Docker-CLI-and-VS-Code).md b/04.-Setting-eShopOnContainer-solution-up-in-a-Mac,-VS-for-Mac-or-with-CLI-environment--(dotnet-CLI,-Docker-CLI-and-VS-Code).md index ff63327..1f1b393 100644 --- a/04.-Setting-eShopOnContainer-solution-up-in-a-Mac,-VS-for-Mac-or-with-CLI-environment--(dotnet-CLI,-Docker-CLI-and-VS-Code).md +++ b/04.-Setting-eShopOnContainer-solution-up-in-a-Mac,-VS-for-Mac-or-with-CLI-environment--(dotnet-CLI,-Docker-CLI-and-VS-Code).md @@ -12,9 +12,11 @@ The SQL Server image for Docker requires more memory to run. You will need to up Depending on how many apps you are running in your Mac you might need to assign more memory to Docker in the Mac. Usually, 4GB should suffice, but we got feedback from devs who needed to assign up to 8GB of ram to Docker in the Mac. ### Folder shares in Docker for Mac -If your projects are placed within the /Users folder, you don't need to configure anything additional, as that is a pre-shared folder. However, if you place your projects under a different path, like /MyRootProjects, then you'd need to add that shared folder to Docker's configuration, here: +If your projects are placed within the /Users folder, you don't need to configure anything additional, as that is a pre-shared folder. However, if you place your projects under a different path, like /MyRootProjects, then you'd need to add that shared folder to Docker's configuration. -![image](https://user-images.githubusercontent.com/1712635/32018085-9b8f66ee-b97d-11e7-8dd2-3e20e1bcee56.png) +If using Visual Studio for Mac, it is also important that you share the folder `/usr/local/share/dotnet`, like here: + +![image](https://user-images.githubusercontent.com/1712635/34540534-c2bc2e94-f089-11e7-8a26-02dd0f91ccee.png) ## Docker Multi-stage support Since December 2017, eShopOnContainers supports [Docker Multi-stage](https://blogs.msdn.microsoft.com/stevelasker/2017/09/11/net-and-multistage-dockerfiles/), therefore, the steps in order to compile the .NET apps/projects before creating the Docker images can now be performed with a single command based on "docker-compose build" or "docker build".