Skip to content

cloudpipe/runner-py2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

runner-py2

Service to handle pickled code from multyvac.

Full example:

$ python -c "import sys; import cloudpickle; cloudpickle.dump((lambda x,y: x+y, (2,3), {}), sys.stdout)" | docker run -i --name rhoyourboat cloudpipe/runner-py2
$ docker diff rhoyourboat
C /tmp
A /tmp/.result
$ docker cp rhoyourboat:/tmp/.result .
$ python -c "import pickle; print(pickle.load(open('.result', 'rb')))"
5

All in one shot:

python -c "import sys; import cloudpickle; cloudpickle.dump((lambda x,y: x+y, (2,3), {}), sys.stdout)"   | docker run -i --name rhoyourboat cloudpipe/runner-py2 && docker cp rhoyourboat:/tmp/.result . && cat .result | python -c "import sys, pickle; print(pickle.load(sys.stdin))" &&   docker stop rhoyourboat

Releases

No releases published

Packages

No packages published