Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PGP in Cloud Computing Try it out! V 1 . 5 Great Learning. All rights reserved. 1 Try it out objective Use this hands -
PGP in Cloud Computing Try it out! V Great Learning. All rights reserved. Try it out objective Use this handson to learn how to deploy an containerized application using Docker The goal Following are the goals of this handson: Working knowledge of EC instances with Ubuntu Deploying an EC instance Understanding the docker ecosystem A Handson: Launch an instance Open the EC management console at https:consoleaws.amazon.comecyou will be required to sign in Change the region to N Virginia if it is not already selected From the EC management console, click on Launch Instance. In Name and Tags field, type out any name of your instance Then choose an Amazon Machine Image AMI page that displays a list of basic configurations. Click on Ubuntu and select Ubuntu Server LTS The next step is very important. Any instance other than the one mentioned below will cause an error at the time of running the container. On the Choose an Instance Type page, select the tmedium instance type. Under Key pair login click on create a new key pair Enter the key pair name of your choice, and then click on Create key pair. Under Network settings, click on Edit. Port for SSH should already be present in the security group. Click on Add security group rule and create the rule with the following parameters a Type : HTTP PGP in Cloud Computing Try it out! V Great Learning. All rights reserved. b Port Range : c Source Type : Anywhere At last, click on Launch instance. B Handson: Installation of docker Select your running instance by clicking on the checkbox present on the left side. Click on Connect button. Click on the Connect button again present at the bottom of the page. NOTE: You must be under EC Instance Connect This will land you to the EC Instance Connect browser terminal. Execute the below commands one by one in the terminal window. NOTE: You are already in your EC server, you need not SSH again. wget https:dopuqoieecloudfront.netdockerinstallscriptsh bash dockerinstallscript.sh exit NOTE: Ensure you restart the shell Refresh the page Now type the below command notice there is no sudo docker version NOTE: The above command should show the client and server versions and other details. The installation is now successful. C Handson: Deploying the application Type the below commands in the terminal window one at a time. PGP in Cloud Computing Try it out! V Great Learning. All rights reserved. sudo apt update sudo apt install unzip sudo chown ubuntu:ubuntu R opt cd opt wget https:dopuqoieecloudfront.netreactlezip unzip reactle.zip docker build t reactle docker run d p : reactle Navigate to the public IP address of the running instance on a new web browser tab to access the application. D Handson: Terminating deleting an instance Go back to the browser tab EC management console Click on Instances in the left navigation Click on the checkbox to the left of your running instance no action is necessary if the checkbox is already selected Click on the Instance state dropdown towards the top right side of the screen Select Terminate instance option Click on the Terminate button on the confirmation popup window The instance will show in Shutting down status and a few moments later will show as Terminated Terminated instances do not attract any costs and will be auto removed from the instance listing in about hours or less Go back to the Lab environment and reset the Lab work area using the reset button in the top right of the screen to avoid any unintended credit charges
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started