GithubHelp home page GithubHelp logo

webserver's Introduction

From COSC 340 Assignment README.md:

Learning to use cloud platform

This exercise will involve creating a docker container and running it on the Google Cloud platform.

Google Cloud Credits To run VMs in the cloud

Here is the URL you will need to access in order to request a Google Cloud Platform coupon. You will be asked to provide your school email address and name. An email will be sent to you to confirm these details before a coupon is sent to you.

Student Coupon Retrieval Link

You will be asked for a name and email address, which needs to match the domain. A confirmation email will be sent to you with a coupon code.

You can request a coupon from the URL and redeem it until: 5/21/2021

Coupon valid through: 1/21/2022

You can only request ONE code per unique email address.

GCP requires projects to be linked to a billing account. If you plan to use GCP for your project, you might want to redeem all credits on a single account and add other members of the same team to that project.

Once you get coupon go to: https://console.cloud.google.com/education

Create a project, e.g.cs340, select it, enter coupon code!

Go to compute engine VM Instances

Now you should be able to create an instance!!!!

Assignment 1: Deploying a webserver

The purpose of the assignment is to familiarize you with the automatic build, containers, and cloud computing

The due date is Mar 11.

  1. Create repo yougithubid/webserver

  2. Add Dockerfile, for example as the one in this repo

  3. Add index.html with your name in it

  4. Create automatic build

    i. on hub.docker.com create id for yourself (if you have not done so before)
    ii. create automated build (pull out from the top menu)
    iii. connect to github repo you have just created
    
  5. make a change on the github repo (to trigger build)

  6. Verify that the build succeeded https://hub.docker.com/r/yourdockerhubid/webserver/builds/

  7. Create a virual machine on GCP

    i. go to https://console.cloud.google.com/compute/instances select the class project and click on craete instance
    ii. Next to memory click customize and reduce 1G
    iii. Mark checkmark "Deploy a container image to this VM" and enter image 'yourdockerhubid/webserver'
    iv. Mark checkmark "Allow HTTP traffic"
    v. click Deploy Container checkbox and enter your container image: yourdockerhubid/webserver
    vi. expand "Advanced Container Options"
    vi. in the "Command" box enter    
    
[ "--name ws", "-p80:80" ]
  1. Click "Create" button at the bottom

  2. Check if the webserver works

      i. enter the external ip adress (for the machine you created) in your browser (you should get your name)
      ii. If that does not work connect to the machine
      iii. Open shell (via gcp console)
      iv. once connected to your instance type 'docker ps': your container should be running
    
  3. Enter ip adress of the machine (just the ip, nothing else) as the last line of your netid.md file in the cs340-21/students repo and create a pull request

webserver's People

Contributors

trogers19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.