Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.79 KB

super-cloudbin.md

File metadata and controls

48 lines (36 loc) · 1.79 KB

Table Of Contents

The Super Way to Inject Custom Binaries into Cloud Executions

So far, we have described how to execute a UNIX pipeline using built-in tools such as grep and sed, and using | and > and ; to sequence your computations. If you find this restriction to the use of built-ins limiting, Super has a solution: a Cloud analog to /usr/local/bin.

Locally, this would be a directory in which you install custom binaries, such as kubectl, that don't ship with your operating system. We would benefit from the same, but for Cloud-based executions.

At the moment, this approach is limited to the injection of scripts and binaries that self-contain their dependencies --- no pip or npm management, yet.

With that restriction, you may inject custom shell scripts and Linux-amd64 binaries by:

  1. Copy your custom binaries to a Cloud Object Storage filepath:
super mkdir /s3/ibm/default/cloudbin
super cp analyze.sh /s3/ibm/default/cloudbin

Note: you will need to choose your own bucket name (do not use "cloudbin"), as bucket names are global, across all users.

  1. Now you may use that binary in your Cloud pipelines:
super run --- gunzip -c /s3/ibm/default/mydata/*.txt.gz | /s3/ibm/default/cloudbin/analyze.sh

And that's it!