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 16:02:12 -07:00
parent 6cb199c351
commit 08a4dcaebf

@ -242,6 +242,8 @@ $ docker-compose build
``` ```
If you now run `$ docker images` you'll see the eShopOnContainers images are now ready to be used by Docker. If you now run `$ docker images` you'll see the eShopOnContainers images are now ready to be used by Docker.
![image](https://user-images.githubusercontent.com/1712635/32027187-8cc4c93c-b99c-11e7-8626-8d036c6eed80.png)
To run the containers, you use `docker-compose up` again: To run the containers, you use `docker-compose up` again:
```bash ```bash
@ -249,12 +251,18 @@ $ 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. 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.
![image](https://user-images.githubusercontent.com/1712635/32027257-ed364caa-b99c-11e7-87bb-339ff91984c7.png)
Ignore the warnings about environment variables for Azure, as tyhat is only needed if you were using infrastructure services in Azure (SQL Database, Redis as a service, Azure Service Bus, etc.) which is the "next step" when using eShopOncontainers.
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). 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).
For testing the MVC web app, run `http://localhost:5100` in any browser, so you'll see it like the following: For testing the MVC web app, run `http://localhost:5100` in any browser, so you'll see the MVC app running like in the following screenshot:
![image](https://user-images.githubusercontent.com/1712635/32027257-ed364caa-b99c-11e7-87bb-339ff91984c7.png)
# Configuring the app for Authentication and access from remote client apps # Configuring the app for Authentication and access from remote client apps (Remote access through the network)
## Setting up the docker-compose file environment variables and settings ## Setting up the docker-compose file environment variables and settings