Coursera 笔记

Module 05 · Final Project and Final Exam期末项目与期末考试

Graded Assignment: Peer Graded Assignment评分作业:同伴互评作业

There are 10 points for 10 tasks in this final project. Your peers who are also completing this assignment within the same session will grade your final assignment. You need to complete the following and submit your responses for peer review. 
本最终项目包含 10 个任务,每个任务 10 分。在同一会话中完成此作业的同学们将评估你的最终作业。你需要完成以下任务,并将你的回答提交给同学进行评审。

This guided final project consists of the following main tasks: 
本指导性最终项目包括以下主要任务:

  1. Plan changes using an epic and stories 
    使用史诗和故事规划变更
  2. Containerize the application
    容器化应用程序
  3. Run unit tests as part of a pipeline 
    运行单元测试作为管道的一部分
  4. Deploy the application when all tests pass
    部署应用程序,当所有测试通过时

To complete this final project, you will submit screen captures for each task.
完成此最终项目,您需要提交每个任务的屏幕截图。

To take a screen capture in Windows, use the snipping tool by going to the start menu and opening the snipping tool. Click New, then click and drag over the area of the screen you want to capture. Save the file with a meaningful name as a PNG or a JPG file. 
在 Windows 中截取屏幕,通过开始菜单打开截图工具。点击新建,然后点击并拖动选择要捕获的屏幕区域。将文件保存为有意义的名称,并以 PNG 或 JPG 格式保存。

To take a screen capture on a Mac, select Shift+Command+4. Then, select and drag the cursor over the area of the screen you want to screen capture. MacOS will save the screen capture to your desktop. Rename the file with a meaningful name and save it as a PNG or a JPG file.
在 Mac 上截取屏幕截图,请按 Shift+Command+4。然后,选择并拖动光标到您想要截取的屏幕区域。MacOS 会将屏幕截图保存到您的桌面。用有意义的名称重命名文件,并将其保存为 PNG 或 JPG 文件。

To upload the file into Coursera, select Upload file. Next, navigate to the file, or drag and drop the file icon into the window.
上传文件到 Coursera,请选择“上传文件”。接下来,找到文件,或将文件图标拖放到窗口中。

Grading Criteria Overview 评分标准概述

Here’s a list of the ten tasks you’ll submit.
以下是您需要提交的十个任务列表。

  1. Run unit tests using Jasmine. The screen capture should display output showing seven passed specs and 0 failures. Save the screen capture as 01-jasmine-tests-passing
    使用 Jasmine 运行单元测试。屏幕截图应显示输出,显示 7 个通过规格和 0 个失败。将屏幕截图保存为 01-jasmine-tests-passing.
  2. Create a Dockerfile to deploy in a local Docker container. The Dockerfile should display the first line as FROM nginx, and five lines for the following individual file: (favicon.ico, index.html, script.js, style.css, and taxCalculator.js). Save the screen capture as container 02-dockerfile
    创建一个 Dockerfile 以在本地 Docker 容器中部署。Dockerfile 的第一行应显示 FROM nginx,以下五行分别对应文件:(favicon.ico, index.html, script.js, style.css, 和 taxCalculator.js)。将屏幕截图保存为 container 02-dockerfile.
  3. Build a Docker image. Take a screen capture of the terminal window displaying the docker build command running successfully and save it as 03-docker-build-output. 
    构建 Docker 镜像。截取显示 docker build 命令运行成功的终端窗口截图,并保存为 03-docker-build-output。
  4. Deploy and test the web application deployed in a Docker container. Take a screen capture of the browser hosting the Tax Calculator web running on port 8080. Save the screen capture as 04-docker-image-browser.
    部署并测试在 Docker 容器中部署的 Web 应用程序。截取运行在 8080 端口的 Tax Calculator Web 浏览器屏幕。将屏幕截图保存为 04-docker-image-browser。
  5. Tag and push to IBM Cloud Registry. Take a screen capture of the terminal output showing the push completed successfully. Save your screen capture as 05-docker-icr-push
    标记并推送到 IBM 云注册表。截取显示推送成功完成的终端输出的屏幕截图。将您的屏幕截图保存为 05-docker-icr-push.
  6. Deploy the Tax Calculator on IBM Cloud. Take a screen capture showing details of the tax calculator deployed on IBM Cloud and save the screen capture as 06-deployed-on-cloud.
    部署 IBM 云上的税务计算器。截取显示部署在 IBM 云上的税务计算器详细信息的屏幕截图,并将屏幕截图保存为 06-deployed-on-cloud。
  7. Create the Tekton Pipeline npm and Jasmine task definitions. Take a screen capture of tasks.yaml that shows two new task definitions (npm and Jasmine) and save the screen capture as 07-tasks-yaml
    创建 Tekton Pipeline npm 和 Jasmine 任务定义。截取 tasks.yaml 的屏幕截图,显示两个新的任务定义(npm 和 Jasmine),并将屏幕截图保存为 07-tasks-yaml.
  8. Extend the pipeline to call the required task. Take a screen capture of the pipeline.yaml file that shows the npminstall tests and build. Save the screen capture as 08-pipeline-changes.
    扩展管道以调用所需任务。截取显示 npminstall 测试和构建的 pipeline.yaml 文件屏幕截图。将屏幕截图保存为 08-pipeline-changes。
  9. Run a Tekton pipeline. Take a screen capture that shows that you input all required sections in the run.yaml file. Save the screen capture as 09-run-yaml. 
    运行 Tekton 管道。截取显示你在 run.yaml 文件中输入了所有必需部分的屏幕截图。将屏幕截图保存为 09-run-yaml。
  10. Deploy the image built using pipeline and save a screen capture of the deployed image as 10-final-output
    部署使用管道构建的镜像,并将部署的镜像的屏幕截图保存为 10-final-output.