unfor19 / devops-a-day-at-the-office

A simple example of a DevOps task

Home Page:https://www.youtube.com/watch?v=r83Yu9N4les

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devops a day at the office

A simple Python app, which makes requests to https://catfact.ninja/fact and prints the results to the terminal.

The application is packaged as a Docker image, which allows running it without installing anything but Docker.

Requirements

git and Docker - that's it

Usage

  1. Git clone this repository
  2. Build the image locally, tagging it as 1.0
    docker build -t catfacts:1.0 .
    
  3. Run an instance of the image (container), each invocation will print a random fact about cats
    docker run --rm  catfacts:1.0
    
    NOTE: the --rm flag tells Docker to remove the container when it's finished, since we don't need to keep any important data, we just print and quit, reference - cleanup

About

A simple example of a DevOps task

https://www.youtube.com/watch?v=r83Yu9N4les


Languages

Language:Python 81.6%Language:Dockerfile 18.4%