qinling/runtimes/python2
Lingxian Kong b79b2791b8 Add swift object support for function creation
With this patch, users can create function using swift object:

http POST http://127.0.0.1:7070/v1/functions name=swift_function \
  runtime_id=xxx \
  code='{"source": "swift", "swift": {"container": "container_name", "object": "object_name"}}'

Implements: blueprint support-swift-object-as-code
2017-05-16 15:24:46 +12:00
..
Dockerfile Add some documentation for Qinling 2017-05-14 00:00:09 +12:00
README.md Add some documentation for Qinling 2017-05-14 00:00:09 +12:00
requirements.txt Add some documentation for Qinling 2017-05-14 00:00:09 +12:00
server.py Add swift object support for function creation 2017-05-16 15:24:46 +12: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