Updated 04. Setting eShopOnContainer solution up in a Mac, VS for Mac or with CLI environment (dotnet CLI, Docker CLI and VS Code) (markdown)
parent
b62fdf89e6
commit
9fbb938617
@ -183,15 +183,30 @@ You can build the application using your local Mac machine. You'll need the fol
|
|||||||
prerequisites installed, in addition to those listed above for building using the CI container.
|
prerequisites installed, in addition to those listed above for building using the CI container.
|
||||||
|
|
||||||
- *[.NET Core and SDK](http://dot.net)*
|
- *[.NET Core and SDK](http://dot.net)*
|
||||||
- *[Node and NPM](http://nodejs.org)*
|
- *[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* ($ npm install -g bower) needed by the MVC web app.
|
||||||
|
|
||||||
Install the following software versions:
|
### Install .NET Core 2.0 or later
|
||||||
|
|
||||||
- [.NET Core 2.0 SDK or later, for Mac](https://www.microsoft.com/net/core#macos)
|
Install [.NET Core 2.0 SDK or later, for Mac](https://www.microsoft.com/net/core#macos) as shown in the image:
|
||||||
- [NodeJS 6.11.5 or latest Long Term version](https://nodejs.org/en/)
|
|
||||||
|
|
||||||
We've included a bash script that runs all the dotnet build commands on your local Mac.
|

|
||||||
|
|
||||||
|
### Install Node (needed so it installs NPM)
|
||||||
|
|
||||||
|
In order to be able to build the JavaScript dependencies from command line by using NPM you need to install npm globally.
|
||||||
|
|
||||||
|
NPM is bundled with NODE.JS. Installing NPM and NODE is pretty straightforward by using the installer package available at https://nodejs.org/en/
|
||||||
|
|
||||||
|
Install [NodeJS 6.11.5 LTS or latest Long Term Service version](https://nodejs.org/en/)
|
||||||
|
|
||||||
|
You can see the installed NPM version with the command npm -v, as shown below.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
Using the bash windows, navigate to your eShopOnContainers directory, and cd into the *cli-mac* directory. Then, run the build script:
|
Using the bash windows, navigate to your eShopOnContainers directory, and cd into the *cli-mac* directory. Then, run the build script:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user