GithubHelp home page GithubHelp logo

captainfedoraskillup / devops-workshop-2020 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rofrano/devops-workshop-2020

0.0 0.0 0.0 60 KB

DevOps Workshop for Software Engineers 2020

License: Apache License 2.0

Shell 60.83% Python 32.17% Makefile 1.94% Dockerfile 4.95% Procfile 0.12%

devops-workshop-2020's Introduction

DevOps for Software Engineers Workshop 2020/2021

This repository represents the starting point for a 3 hour workshop on DevOps for Software Engineers. It is meant to be forked to your own GitHub account so that you can create Issues and Pull Requests and push software updates as you follow along with the hands-on workshop.

Overview

Many job postings consider DevOps to consist largely of operation skills, but what about the software engineers that provide the "Dev" in DevOps? This tutorial will give attendees first hand experience in building a microservice and deploying it as a container on Kubernetes using DevOps practices and methods. An overview of DevOps culture and cloud native microservice architecture will be presented as a backdrop to the hands-on exercise.

Attendees will build a RESTful Python Flask microservice using Test Driven Development techniques and run it locally. Then we will introduce the concepts of Docker and wrap that service in a Docker container and re-run our tests proving that the behavior has not changed. We will then set up Continuous Integration using GitHub Actions to run our test cases on every Pull Request. We will deploy the microservice to a local Kubernetes cluster manually. (Sorry, there is not enough time to set up a CD pipeline) Finally we will add persistence to our microservice and deploy a Redis service in our Kubernetes cluster for our microservice to use showing how to use secrets for storing sensitive information like database credentials.

The tutorial will switch between lecture and lab several times as new concepts are introduced and then quickly demonstrated and implemented in the hands-on exercise. Attendees will come away with a good understanding of how modern software is delivered using DevOps tools and practices with a programmable containerized infrastructure like Kubernetes.

Prerequisites

To successfully follow along with this workshop you will need to have Docker Desktop and Visual Studio Code installed on your computer. The lab will be using VS Code Remote Containers extension to provide a Docker development environment.

Agenda

The workshop Agenda is as follows:

Introduction and Setup

Overview of how the workshop will be run. Get Docker Desktop and Visual Studio Code installed and setup and building during the DevOps Overview section if you haven't done that before the workshop.

Follow these instructions to Install Prerequisite Software

DevOps Overview

Brief Overview of DevOps with an emphasis on the Software Developer perspective. Attendees will be introduced to the practices that are covered in this workshop and also learn why culture is the most critical aspect of DevOps to get right.

Agile Planning

Introduction to Agile Planning concepts. Create an agile plan for the remainder of the workshop. Attendees will create Stories that they will execute during workshop. They will also use a Burndown chart to track their progress.

Stories include:

  1. Create a skeleton Flask service
  2. Add a counter where each GET increments the counter
  3. Make the counter persistent
  4. Setup Continuous Integration
  5. Add ability for multiple counters that are RESTful
  6. Add Docker support
  7. Add Kubernetes support

Full stories for planning are here

Social Coding

Introduction to the Git Feature Branch Workflow. Attendees will assign the first Story #1 from their Sprint Backlog to themselves, create a feature branch to work on the story, and issue a pull request to merge their code back into master.

Test Driven Development

Introduction to Test Driven Development. Attendees will write the test cases for the code they wish they had, and then implement that code following Agile Planning and Feature Branch Workflow. They will implement Story #2 to add a non-persistent counter where each GET increments the counter.

Continuous Integration and Continuous Delivery

Attendees will be introduced to the concepts of CI/CD and in particular GitHub Actions. They will connect their git repo to GitHub Actions so that their test cases run with every Pull Request. Stories include added Redis to their GitHub Actions in Story #4.

Microservices and REST APIs

Introduction to Microservice Architecture and REST APIs. Attendees will begin to code their first REST API for the hit counter application starting with test cases that follow good RESTful coding standards. Stories include Story #3 and Story #5 adding persistence to the counter in the form of a Redis database.

Introduction to Docker

Overview of Docker containers. Attendees will create a Dockerfile for their microservices and run it in a Docker container. They will implement Story #6 and update GitHub Actions to run tests for the Dockerized version.

Introduction to Kubernetes

Overview of Kubernetes. Attendees will deploy the Docker version of their microservice in a Kubernetes cluster. They will implement Story #7 and will also have to deploy a Redis service in Kubernetes for their microservice.

Copyright

(c) 2019, 2021 John Rofrano, All Rights Reserved

devops-workshop-2020's People

Contributors

rofrano avatar magnus-isu avatar snyk-bot 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.