- Challenge 1 - Setup should be done successfuly.
With this second challenge you will be able to run "locally" in your Azure Cloud Shell the given "Rock Paper Scissors Boom" app.
- Leveraging Docker, build and run the app from within Azure Cloud Shell. You can use the docker-compose.yaml file we have provided in /WhatTheHack/005-RockPaperScissorsBoom/Student/Resources/Code.
- See Tips below for an example of how to do this.
- Test the app as an end-user, and play a game. You can reach the app via the dockerhost's public IP address. Try
az vm show
to find the IP address of your VM. Or, look for it in the portal.
- In Azure Cloud Shell, make sure
docker images
is showing you 5 Docker images. - In Azure Cloud Shell, make sure
docker ps
is showing you 2 Docker containers. - In your web browser, navigate to the app and play a game, make sure it's working without any error.
- In Azure Cloud Shell, read the
docker-compose.yaml
file and theDockerfile*
files. What do you see? What do you understand? Are you able to quote 3 benefits/advantages of using Docker? - In Azure DevOps (Boards), from the Boards view, you could now drag and drop this user story associated to this Challenge to the
Resolved
orClosed
column, congrats! ;)
- .NET Core is not installed in Azure Cloud Shell?! Don't worry, there's a Docker image for that!
- You could for example run this command
docker-compose up --build -d
from the folder where thedocker-compose.yaml
file is.
- You could for example run this command
- To edit or read files from within Azure Cloud Shell, you could run
code .
to graphically browse the current folder and its files and subfolders. FYI,cat
orvi
are other alternatives.
Too comfortable? Eager to do more? Try this:
- Instead of leveraging Docker via Azure Cloud Shell, you could configure your local machine with Visual Studio Code, or Visual Studio, installed .NET Core and deploy your app locally.