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
ddea9dde0c
commit
91919843ad
@ -230,24 +230,22 @@ You could generate the binaries manually, with 'dotnet publish', but for your co
|
|||||||
In addition, it runs the client build commands using *npm* to build the SPA application
|
In addition, it runs the client build commands using *npm* to build the SPA application
|
||||||
assets. Finally, it will remove old docker containers and images.
|
assets. Finally, it will remove old docker containers and images.
|
||||||
|
|
||||||
After you've finished the build, you can create the necessary containers using
|
After you've finished the build, you can create the Docker images defined at the docker-compose.yml file by using `docker-compose build`:
|
||||||
`docker-compose`:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose build
|
$ docker-compose build
|
||||||
```
|
```
|
||||||
|
|
||||||
The above command creates the images for the eShopOnContainers application. To run, you
|
To run the containers, you use `docker-compose up` again:
|
||||||
use `docker-compose` again:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up
|
$ docker-compose up
|
||||||
```
|
```
|
||||||
|
You could also go ahead and directly run `docker-compose up` and it will first build the Docker images like when you run `docker-compose build`, though.
|
||||||
|
|
||||||
The first time you run this command, it will pull the necessary docker images
|
The first time you run `docker-compose up`, it will pull the necessary docker images from Docker hub. That will take some time. Once the base Docker images have been pulled, the application will start and you can test it out using the browser and the addresses shown [above](#running-the-application).
|
||||||
from Docker hub. That will take some time. Once the images have been pulled,
|
|
||||||
the application will start and you can test it out using the browser and the
|
For testing the MVC web app, run `http://localhost:5100` in any browser, so you'll see it like the following:
|
||||||
addresses shown [above](#running-the-application).
|
|
||||||
|
|
||||||
|
|
||||||
# Configuring the app for Authentication and access from remote client apps
|
# Configuring the app for Authentication and access from remote client apps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user