Skip to content

AWS w Docker Deployment

Savi Goyal edited this page Apr 12, 2020 · 14 revisions

Intro and Purpose

Describe your Project:

In this project I have created EC2 instance on Amazon with a later version of Ubuntu pre-defined AMI. Then installed Ruby on Rails onto this instance. After this I have deployed my project R1 rails project PhotoSite on it. Once this part is done. I have installed Docker software on ec2, then deployed Project R1 into this Docker Container and created the image of the Project

YouTube URL:

https://www.youtube.com/watch?v=4RSzkCUSXmA

Discuss how your group discovered how to create a Docker Container and show how it was made:

  1. I have installed the Docker software on ec2.
  2. Then downloaded the “get-docker.sh” script from “https://get.docker.com” using the “curl” browser.
  3. Once the docker got installed I deployed Photosite inside a Docker container containing its dependencies. Defining dependencies is done using a file called Dockerfile.
  4. Then generated the Rails skeleton app using docker-compose and docker image got built.

Demonstration of Application working

A SEPERATE SCREEN SHOT FOR each new screen a user sees in using your application on the EC2 deployment featuring YOUR personal Docker Container in YOUR AWS account

I have logged in EC2 instance of aws. Screen Shot 2020-03-04 at 10 41 40 PM

Entered into Photosite folder in ec2 instance and ran docker-compose run web to start docker container Screen Shot 2020-03-04 at 10 42 24 PM

Now on browser I can see my photosite rails project is running on docker container on ec2 Instance Screen Shot 2020-03-04 at 8 31 30 PM

Screen Shot 2020-03-04 at 8 31 55 PM Screen Shot 2020-03-04 at 8 32 11 PM Screen Shot 2020-03-04 at 8 32 29 PM

A SEPARATE SCREEN SHOT(s) showing the usage inside the Amazon AWS console

Screen Shot 2020-03-04 at 10 35 57 PM Screen Shot 2020-03-04 at 10 36 11 PM Screen Shot 2020-03-04 at 11 00 36 PM

Everything is working.

Everything is implemented

YouTube URL:

https://www.youtube.com/watch?v=4RSzkCUSXmA

Special ISSUE 1: what happens when an instance stops running?

Rebooting an instance is like rebooting a PC. The hard disk isn't affected. You don't return to the image's original state, but the contents of the hard disks are those before the reboot. Rebooting isn't associated with billing. Billing starts when you instantiate an image and stops when you terminate it. Rebooting in between hasn't any effect

Special ISSUE 2: what happens when you reboot an instance and what can you do?

Rebooting an instance is like rebooting a PC. The hard disk isn't affected. You don't return to the image's original state, but the contents of the hard disks are those before the reboot. Rebooting isn't associated with billing. Billing starts when you instantiate an image and stops when you terminate it. Rebooting in between hasn't any effect