Thursday, September 25, 2014

Taking blobs from BOSH releases

When developing BOSH releases we quite often take packages from existing BOSH releases to save time. Finding the binary blobs you need for the package (from the .blobs directory) is a pain, the files in this directory are all UUIDs making them difficult to work with.

To resolve this issue I wrote a small function for my .bashrc to copy the blobs to a new directory and reverse the UUID naming process that takes place when you upload the blobs using BOSH.

The usage pattern for the function is as follows:

you@yourpc $ git clone
you@yourpc $ cd sensu-client-boshrelease
you@yourpc $ bosh create release
you@yourpc $ bosh-blobs-realize

I hope someone finds this useful.