Updated 04. Setting eShopOnContainer solution up in a Mac, VS for Mac or with CLI environment (dotnet CLI, Docker CLI and VS Code) (markdown)

Cesar De la Torre 2017-10-25 15:03:08 -07:00
parent 9fbb938617
commit ddea9dde0c

@ -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. [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. 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. [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. 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)* - *[.NET Core and SDK](http://dot.net)*
- *[Node and NPM](http://nodejs.org)* - Just needed in order to install NPM. - *[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 ### 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) ![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' ### 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. 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.