From ddea9dde0c3f20e4c6d391d6dee0211771a4c331 Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Date: Wed, 25 Oct 2017 15:03:08 -0700 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) --- ...ment--(dotnet-CLI,-Docker-CLI-and-VS-Code).md | 16 ++++++++++++++-- 1 file changed, 14 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 d6659f2..87c1f54 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 @@ -100,7 +100,7 @@ And by typing `docker ps` you can see the containers running in Docker. The infr 1. [Docker for Mac](https://docs.docker.com/docker-for-mac/install/). You should already have this. 1. A Git client. The [git-scm site](https://git-scm.com/download/gui/mac) maintains a great list of clients. 1. [Node.js](http://nodejs.org). The stable channel is fine as well. -1. Bower ($ npm install -g bower) needed by the MVC web app. +1. Bower ($ sudo npm install -g bower) needed by the MVC web app. 1. [.NET Core and SDK](http://dot.net). Install the SDK and runtime. @@ -184,7 +184,7 @@ prerequisites installed, in addition to those listed above for building using th - *[.NET Core and SDK](http://dot.net)* - *[Node and NPM](http://nodejs.org)* - Just needed in order to install NPM. - - *Bower* ($ npm install -g bower) needed by the MVC web app. + - *Bower* ($ sudo npm install -g bower) needed by the MVC web app. ### Install .NET Core 2.0 or later @@ -204,6 +204,18 @@ You can see the installed NPM version with the command npm -v, as shown below. ![image](https://user-images.githubusercontent.com/1712635/32025172-0e394dd4-b994-11e7-9e32-112cf9f5eb26.png) +### Install Bower globally + +In bash, run the following command: + + ```bash + $ sudo npm install -g bower + ``` +As shown in the following screenshot: + +![image](https://user-images.githubusercontent.com/1712635/32025555-8a027d36-b995-11e7-8b38-fd7447d30e78.png) + + ### Build the eShopOnContainers .NET binaries with 'dotnet publish' You could generate the binaries manually, with 'dotnet publish', but for your convenience, we've included a bash script that runs all the 'dotnet publish' commands on your local Mac and generates the bits in the right folders expected by Docker and Visual Studio, if you use VS with the same solution, eventually.