Giter Site home page Giter Site logo

testdocker's Introduction

Assignment-3

Pre Steps:

  • Clone this repository into your local machine
  • Run 'npm install'
  • Run 'npm test -- --coverage'
  • Open /coverage/lcov-report/index.html
  • Click on calculator.js
  • At the top observe the % of Lines covered
  • In the main branch create a github workflow for automated testing (For example: https://lannonbr.com/blog/2020-03-30-github-actions-ci-tests)
  • Create another branch from main
  • Open /coverage/lcov-report/index.html and observe the % of lines covered
  • Write more unit tests to bring the Line coverage % above 80%
  • Push the changes to the branch on Github
  • Then create a pull request to the main branch
  • Observe the 'Actions' tab of the respository
  • The workflow that you created earlier should start running and it should pass (Its called Continuous Integration)
  • If its not passing, fix the code / unit tests and push the code again to your branch (the pull request is already created so no need to create a new one)
  • If its passing then merge the Pull Request with main (Its called Continuous Deployment)
  • Create a docker hub free account for the purpose of this assignment and create your first free repository (remember this name)

Assignment Deliverables:

  • On your local machine, create a Dockerfile for the project with appropriate configuration
  • Build the docker file and let it succeed
  • Once its built, tag the docker file with the tag name "release"
  • Push the docker image to your docker hub repository that you created earlier after creating docker hub account.
  • Additionally, write a github actions script for deploying building, tagging and deploying the docker image to your docker hub account
  • Run the newly created github action if its not already running and wait for it to succeed.
  • Then check your docker hub repository, you should see a build image there with a tag name "release".
  • Create a new text file in this repo, include your docker hub repository url in it. This will be your final submission.

testdocker's People

Contributors

nnguyen52 avatar ktongay-langara 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.