qinling/runtimes/python2.7
Lingxian Kong df32a9f412 Complete basic workflow(Finally!)
- Create runtime
- Create function
- Invoke function(i.e. create execution)
2017-05-12 12:00:19 +12:00
..
Dockerfile Complete basic workflow(Finally!) 2017-05-12 12:00:19 +12:00
README.md Complete basic workflow(Finally!) 2017-05-12 12:00:19 +12:00
requirements.txt Complete basic workflow(Finally!) 2017-05-12 12:00:19 +12:00
server.py Complete basic workflow(Finally!) 2017-05-12 12:00:19 +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.

Customizing this image

To add package dependencies, edit requirements.txt to add what you need, and rebuild this image (instructions below).

You also may want to customize what's available to the function in its request context. You can do this by editing server.py (see the comment in that file about customizing request context).

Rebuilding and pushing the image

You'll need access to a Docker registry to push the image: you can sign up for Docker hub at hub.docker.com, or use registries from gcr.io, quay.io, etc. Let's assume you're using a docker hub account called USER. Build and push the image to the the registry:

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

Using the image in Qinling

TBD