Skip to content

An interview exercise for a devops position

Notifications You must be signed in to change notification settings

rawalarpit1445/clocks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Function clock_angle() accepts 2 parameters as json

Input: Sample JSON: { "hrs":3, "mins":0 } Accessing Function:

  1. curl -X POST "https://us-central1-ind-coe.cloudfunctions.net/clock_repository" -H "Content-Type:application/json" -d '{"hrs":10,"mins":20}'

  2. https://us-central1-ind-coe.cloudfunctions.net/clock_repository?hrs=10&mins=10

Output: return string e.g. 'Angle -> 90.0'

Deploying Method: The code automatically push changes to Google cloud function. Google cloud "Source repositroy" has Trigger build on "Google Build" which deploys code to Cloud function "clock_angle".

About

An interview exercise for a devops position

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.9%
  • Dockerfile 6.1%