Coder Social home page Coder Social logo

digideskio / cloudpipe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudpipe/cloudpipe

0.0 1.0 0.0 1.46 MB

:wrench: Compute on demand in Docker containers

License: BSD 3-Clause "New" or "Revised" License

Go 93.72% Shell 2.56% Python 3.72%

cloudpipe's Introduction

Cloudpipe

Compute on demand in Docker containers.

Watch the Cloudpipe Prototype Demo

Build Status

Hacking on the Cloudpipe backend server

  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. We've created a fork that adapts to our base image and fixes some bugs evident when using the IPython/Jupyter Notebook.

pip install vac

โš ๏ธ If you already had multyvac installed, you'll likely want to delete ~/.multyvac. Note that installing vac does overwrite the multyvac package.

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

cloudpipe's People

Contributors

smashwilson avatar rgbkrk avatar danabauer avatar etoews avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.