Giter Site home page Giter Site logo

devops-chk's Introduction

DevOps Interview Test

Welcome to Qwilt

In this repository you'll find Light-weight continuous deployment exercise.

General Guide-Lines

  • Your work and configuration should be visible and you will be instructed to present them.
  • We expect a running "Dummy" service, and a working automated deployment work-flow.
  • Use this repository as the workspace for everything you build and configure

Let's Begin

  1. You will do the exercise on EC2 machine , please download devops-candidate.pem and login to EC2 by:
ssh  -i <devops-candidate.pem full path> [email protected]
  1. Clone this repository https://github.com/adiCohenIL/devops-chk on EC2

    Make sure you create your own branch to work on !

  2. This repostitory contains dummy nodeJS app in CICD-exercise directory (See package.json and app.js)

Dummy Service setup

  • cd CICD-exercise
  • Install Node dependencies with: npm install
  • Run service: npm run start

Dummy service has health check:

  1. Create a Dockerfile for the Dummy service for being able to run the service as a Docker container.
  2. Docker registry is available on EC2 , called qwilt-registry

Get images in registry

curl -X GET http://qwilt-registry:5000/v2/_catalog

Get tags of image in registry

curl -X GET http://qwilt-registry:5000/v2/<image-name>/tags/list
  1. Jenkins is available on http://54.75.84.188:8080 Edit "Ci Cycle" job, job should create and upload Dummy service docker image to registry

    Note: versioning of image is expected

    build groovy file should be saved in /home/ubuntu/repos/devops-chk/CICD-exercise/ci_jenkinsfile

  2. Add Jenkins task to deploy dummy service container to EC2 machine ( get image from registry and run it)

  3. Bonus: Add health check to your service (in the dockerfile)

Good Luck

Copyright © 2021 Qwilt

devops-chk's People

Contributors

adicohenil avatar qwilt-devops 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.