Git Product home page Git Product logo

dattoexercise's Introduction

Bitdam DevOps Interview Assignment

This is an assignment for devop position.

Project goal:

Creating a CI pipeline for a Python product.

Solution architecture:

Development language: Python.
3RD parties: git, Github, Jenkins, Docker, Minikube, Helm Distribution type: Public.

Project guidelines:

  1. Jenkins will be used as a CI engine and will run and schedule the pipeline.
  2. Git will be used as source control management tool.
  3. The Jenkins pipeline must be written inside a Jenkinsfile and committed into a remote any git repository.

what do you need?

  1. Computer.
  2. Github account.
  3. DockerHub account.

Project Steps

step 1: Install jenkins locally with helm

  1. Install docker on the computer.
  2. Install minikube.
  3. Install helm.
  4. Install jenkins with helm chart on local minikube.

step 2: Connect jenkins to github and dockerhub

  1. Install docker plugin in configure jenkins to connect to your dockerhub account.
  2. Configure jenkins to connect github account.
  3. Create a job to execute the Jenkinsfile.

step 3: Create dockerfile

  1. Create dockerfile with all dependencies for the microservice.
  2. Install python virtualenv.
  3. Install requirements.txt.
  4. Add microservice directory.
  5. Execute microservice/main.py.
  6. Build the image and test if the microservice is running.

step 4: Create deployment

  1. Create new deployment on minikube and run microservice.
  2. Execute microservice/main.py.
  3. Make sure the deployment is running.

step 5: Write declarative pipeline

  1. Pull SCM.
  2. Run python unittests in the microservice folder using py.test.
  3. Build image docker image using Dockerfile.
  4. Push docker image to dockerhub.
  5. Deploy image using deployment.yaml.

Screenshot

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.