qinling/runtimes/python2
Lingxian Kong aa1469da68 Fix docker image function
- Make docker image function work, add functional tests
- Use 'result' instead of 'output' in execution response
- Support string as execution input
- Update python runtime

Partially implements: blueprint qinling-functional-tests
Change-Id: Ie7e59983cfbc6f9e8514438e30a854f372a4c4d7
2017-12-19 23:05:38 +13:00
..
Dockerfile Limit resource consumption of function 2017-12-04 23:26:13 +13:00
README.md Support python function input 2017-06-15 22:59:27 +12:00
custom-entrypoint.sh Limit resource consumption of function 2017-12-04 23:26:13 +13:00
requirements.txt Limit resource consumption of function 2017-12-04 23:26:13 +13:00
server.py Fix docker image function 2017-12-19 23:05:38 +13:00

README.md

Qinling: Python Environment

This is the Python environment for Qinling.

It's a Docker image containing a Python 2.7 runtime, along with a dynamic loader. A few common dependencies are included in the requirements.txt file. End users need to provide their own dependencies in their function packages through Qinling API or CLI.

Rebuilding and pushing the image

You'll need access to a Docker registry to push the image, by default it's docker hub. After modification, build a new image and upload to docker hub:

docker build -t USER/python-runtime . && docker push USER/python-runtime

Using the image in Qinling

After the image is ready in docker hub, create a runtime in Qinling:

http POST http://127.0.0.1:7070/v1/runtimes name=python2.7 image=USER/python-runtime