Skip to content

IntrospectData/python-flask-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

python-flask-template

Python OpenFaaS template with Flask

To try this out with either Python 2.7 or Python 3.6:

faas template pull https://github.com/openfaas-incubator/python-flask-template
faas new --list
Languages available as templates:
- python27-flask
- python3-flask

Generate a function with one of the languages:

faas new --lang python3-flask myfunction
mv myfunction.yml stack.yml

Followed by the usual flow:

faas build \
  && faas deploy
  && faas list --verbose

# Wait a couple of seconds then:

echo -n content | faas invoke myfunction

build-args

This set of templates leverages two specific build-args for additional functionality:

  • OF_WATCHDOG_VERSION - string - semver2 version of of_watchdog as released on GitHub
  • ADDITIONAL_PACKAGES - string - space separated set of Alpine Linux packages to install as underlying requirements for the application to run per OpenFaaS Docs

About

OpenFaaS templates for Python 2.7/3.6 with Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dockerfile 60.1%
  • Python 39.9%