8000 GitHub - danabauer/cloudpipe: :wrench: Compute on demand in Docker containers
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

danabauer/cloudpipe

 
 

Repository files navigation

Cloud Pipe

Compute on demand in Docker containers.

Watch the CloudPipe Prototype Demo

Build Status

Getting Started

  1. Install Docker on your platform.
  2. Install compose.
  3. Generate development TLS credentials by running script/genkeys.
  4. Run docker-compose build && docker-compose up -d to build and launch everything locally.

To run the tests, use script/test. You can also use script/mongo to connect to your local MongoDB database.

Running code against the system

For this iteration, we've implemented (some of) multyvac's API allowing you to use multyvac for Python 2:

pip install multyvac

Configure the client to connect to yours (default settings from compose shown here):

>>> import multyvac
>>> api_url = 'http://{}/v1'.format(<your_ip_endpoint>)
>>> multyvac.config.set_key(api_key='admin',
...                         api_secret_key='12345',
...                         api_url=api_url)

Create a Job

>>> def add(x,y):
...   sum = x + y
...   print("{x} + {y} = {sum}".format(x=x, y=y, sum=sum))
...   return sum
...
>>> job_id = multyvac.submit(add, 2, 3)

Retrieve the results

>>> job = multyvac.get(job_id)
>>> job.get_result()
5
>>> print(job.stdout)
2 + 3 = 5

About

🔧 Compute on demand in Docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.1%
  • Python 3.7%
  • Shell 2.2%
0