Skip to content

ivgenyr/devops-chk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

As part of the test you will need to create an image and push it to the registry.

For you convinience below are the commands that can be used to list the images that currently reside in the repository

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://52.211.176.98: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.5%
  • Groovy 27.2%
  • Dockerfile 24.2%
  • Shell 2.9%
  • HTML 2.6%
  • CSS 1.6%