bosh-lite icon indicating copy to clipboard operation
bosh-lite copied to clipboard

spiff download pulls wrong binary

Open larryhallgoldman opened this issue 12 years ago • 14 comments

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.

larryhallgoldman avatar Jan 22 '14 00:01 larryhallgoldman

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?

dbailey avatar Jan 22 '14 15:01 dbailey

@drnic any chance you can fix the spiff installer? We can go back to manually documenting the install, but I'd rather not.

mkocher avatar Jan 22 '14 19:01 mkocher

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

drnic avatar Jan 22 '14 20:01 drnic

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 avatar Jan 22 '14 20:01 drnic

@drnic Are you currently working on a fix for this?

-CF Community Pair (@atomanyih & @sclevine)

atomanyih avatar Jan 27 '14 20:01 atomanyih

For Linux, these are the quick fix changes I made to the downloaded file to get it to work for now:

  1. renamed file and unzipped it as "spiff" ($ mv spiff spiff.zip && unzip spiff.zip).
  2. Opened the "generate_deployment_manifest" in a text editor and prepended the spiff merge line as: "$(dirname $0)/spiff merge "

Hopefully this helps.

barwiegman avatar Jan 28 '14 01:01 barwiegman

@drnic Can we close this issue?

Thanks, CF Community Pair (@ematpl & @sclevine)

emalm avatar Feb 05 '14 19:02 emalm

Looks like the bosh-lite README has been changed not to refer to this installer. Closing the issue.

-CF Community Pair (@ematpl & @mmb)

emalm avatar Feb 11 '14 20:02 emalm

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.'

fthamura avatar Jun 06 '14 08:06 fthamura

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.

emalm avatar Jun 06 '14 08:06 emalm

@ematpl i am not using mac

and there is no brew for mac, how to install homebrew

fthamura avatar Jun 06 '14 08:06 fthamura

@fthamura: You can download a Linux binary from the releases page and install it somewhere on your $PATH.

emalm avatar Jun 06 '14 08:06 emalm

will we change the README?

fthamura avatar Jun 06 '14 08:06 fthamura

working. thx ;) i put the spiff in /usr/bin

sudo mv spiff /usr/bin

fthamura avatar Jun 06 '14 09:06 fthamura