Giter VIP home page Giter VIP logo

homework's Introduction

homework

这个repo是共享大家对于DevOps毕业生入门培训作业的分步完成情况。

每个人在分步的目录下创建自己名字命名的目录,然后上传代码。

├── README.md
├── chengxiu
├── haipeng
├── yuze
└── junnan

step1

使用Vagrant + Ansible搭建一个CI环境,需要安装Jenkins

要求:

  1. 最终脚本一定是可运行无报错的
  2. 尽可能少的命令行操作
  3. 尽可能多的使用Ansible模块
  4. 理解每行配置文件的意思

扩展思考

  1. 如何在重启虚拟机后Jenkins也自动运行
  2. Jenkins插件如何自动化安装

step2

配置一个pipeline, 能实现简单的CD

要求:

  1. 本地修改代码(一个简单的html页面即可),然后提交到github仓库,自动触发pipeline
  2. 使用nginx
  3. 打开浏览器,可以看到页面变化

扩展思考

  1. 如何部署到远端机器
  2. 如何部署到多台机器
  3. 如何使用NginxLoad balance

step3

增加数据库,前后端分离。

要求:

  1. 使用Ansible构建一个MYSQL数据库,需要有一些简单的数据
  • 构建一个或者网上找一个JAVA项目,内容不限,只提供API,可以通过(测试)、编译、打包过程,能够连接到数据库
  • 构建一个或者网上找一个前端项目,内容不限,需要可以连通JAVA API,能够构建运行之后在浏览器页面上展示出数据库的数据
  • 使用Jenkinsfile完善Pipeline过程

扩展思考

  1. 这种架构如何实现高可用
  2. 一个标准的Pipeline是什么样的

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.