service-status-app

Service
Log | Files | Refs | README

instructions.md (1140B)


      1 # Instructions
      2 You are provided with a small Python web application.
      3 The application fetches and exposes the status of an external service.
      4 The application is intentionally minimal and may contain shortcomings.
      5 Please complete the following tasks.
      6 
      7 ### Containerization
      8 
      9 Create a Dockerfile for the application.
     10 Requirements:
     11 
     12 * The application should run inside a container
     13 * It should be accessible from your host machine
     14 
     15 
     16 ### Run it Locally
     17 
     18 Provide instructions or scripts to:
     19 
     20 * Build the Docker image
     21 * Run the container locally
     22 
     23 
     24 ### Deployment with Ansible
     25 
     26 Write an Ansible playbook that:
     27 
     28 * Builds the Docker image
     29 * Tags the image
     30 * Runs the container locally
     31 
     32 
     33 ### Improvements
     34 
     35 Describe improvements you would make to the Python application.
     36 Examples (not exhaustive):
     37 
     38 * Error handling
     39 * Logging
     40 * Structure
     41 * Configuration
     42 
     43 
     44 ## Deliverables
     45 
     46 * Dockerfile
     47 * Ansible playbook(s)
     48 * Any scripts used
     49 * README with instructions
     50 * Short description of improvements
     51 
     52 
     53 ## Notes
     54 
     55 * The task should take no more than 1–2 hours
     56 * Focus on clarity and practicality rather than completeness
     57 * Keep solutions simple and well-structured