Public | Automated Build

Last pushed: 7 months ago
Short Description
Singe endpoint Flask/Python app
Full Description

NippyKindLangur

Flask in Docker that has one endpoint and a CLI for running it

1. Build a container with a simple flask app

Automated build available at the Docker Hub

2. Build a CLI in python to interact with your container

Commands:

$ dockcli run <container name>
$ dockcli stop <container name>

Requirements:

  • can pip install --editable
  • name: dockcli
  • container runs deamonized via CLI
  • arity 2: run|stop, container name
  • run return success: Your app is running on address, return code 0
  • run return failure: unspecified, return code non-zero
  • stop return: stop and clean up container, return code 0

Extras:

  • functional or unit tests of CLI

Tools to use


Would like to improve on...

  • Break commands out into their own directory so as to be more modular and less clumsy as just one "action" switch
Docker Pull Command
Owner
sudomilk
Source Repository

Comments (0)