spiff download pulls wrong binary
Was working through the README and found an error... The curl command shown to download spiff pulls the work binary for OSX. (Think it pulls the linux binary, rather than the desired OSX binary.) Work around was to go to git repo and pull it down manually from release.
This command:
curl -s http://spiff.cfapps.io/install.sh | bash
pulls the right binary for me, unfortunately it is zipped. I don't know in which repo the install.sh script is located.
@mkocher Could someone look into this?
@drnic any chance you can fix the spiff installer? We can go back to manually documenting the install, but I'd rather not.
Yes fixing it is now in in the queue in front of me (as part of a large automate everything bosh-lite-and-cf script; which needs spiff); and bosh.cf.org getting started docs.
On Wed, Jan 22, 2014 at 11:04 AM, Matthew Kocher [email protected] wrote:
@drnic any chance you can fix the spiff installer? We can go back to manually documenting the install, but I'd rather not.
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh-lite/issues/76#issuecomment-33055626
The fix will also involve changing the curl command (to be like cf CLI installer) which will need a PR.
Perhaps you want to rip out the erroneous curl command now, and replace with link to spiff readme.
On Wed, Jan 22, 2014 at 11:04 AM, Matthew Kocher [email protected] wrote:
@drnic any chance you can fix the spiff installer? We can go back to manually documenting the install, but I'd rather not.
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh-lite/issues/76#issuecomment-33055626
@drnic Are you currently working on a fix for this?
-CF Community Pair (@atomanyih & @sclevine)
For Linux, these are the quick fix changes I made to the downloaded file to get it to work for now:
- renamed file and unzipped it as "spiff" ($ mv spiff spiff.zip && unzip spiff.zip).
- Opened the "generate_deployment_manifest" in a text editor and prepended the spiff merge line as: "$(dirname $0)/spiff merge "
Hopefully this helps.
@drnic Can we close this issue?
Thanks, CF Community Pair (@ematpl & @sclevine)
Looks like the bosh-lite README has been changed not to refer to this installer. Closing the issue.
-CF Community Pair (@ematpl & @mmb)
meruvian@baremerv:~$ curl -s http://spiff.cfapps.io/install.sh | bash
bash: line 1: syntax error near unexpected token (' bash: line 1:404 Not Found: Requested route ('spiff.cfapps.io') does not exist.'
Hi, @fthamura,
Please follow the directions in the spiff repo README to install the spiff binary.
Also, piping untrusted content from the Internet into bash is generally unadvisable. If someone malicious had changed 'http://spiff.cfapps.io/install.sh' to contain rm -rf ~, it would have removed your entire home directory.
@ematpl i am not using mac
and there is no brew for mac, how to install homebrew
@fthamura: You can download a Linux binary from the releases page and install it somewhere on your $PATH.
will we change the README?
working. thx ;) i put the spiff in /usr/bin
sudo mv spiff /usr/bin