https://github.com/unfor19/devops-a-day-at-the-office
A simple example of a DevOps task
https://github.com/unfor19/devops-a-day-at-the-office
devops devops-tools
Last synced: 8 months ago
JSON representation
A simple example of a DevOps task
- Host: GitHub
- URL: https://github.com/unfor19/devops-a-day-at-the-office
- Owner: unfor19
- Created: 2020-05-17T09:38:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:56:54.000Z (over 3 years ago)
- Last Synced: 2025-01-22T05:17:45.745Z (over 1 year ago)
- Topics: devops, devops-tools
- Language: Python
- Homepage: https://www.youtube.com/watch?v=r83Yu9N4les
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Docker](https://docs.docker.com/get-docker/) - that's it
## Usage
1. Git clone this repository
1. Build the image locally, tagging it as `1.0`
```
docker build -t catfacts:1.0 .
```
1. 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](https://docs.docker.com/engine/reference/run/#clean-up---rm)