ansible-container-flask-example

Created by cverna a year ago
Example on how to use ansible container to serve a flask application
Members 1

Flask HelloWorld

Here is Flask HelloWorld example with Ansible Container.

The config creates a Fedora 26 Container.

This GIST assumes you have read the Ansible Container docs, and have a sucessful install of Ansible Container.

Install

  1. Clone the Repo git clone https://pagure.io/ansible-container-flask-example.git.
  2. Change Directory cd ansible-container-flask-example/.
  3. Run ansible-container build.
  4. Run ansible-container run.

You will find the content of flask-helloworld/templates/index.html on http://localhost:5000.