News for hackers. Stuff that matters.
Re:Hyper – Hypervisor-agnostic Docker engine by nostalgiac on Friday May 29, 2015 @12:13AM (#9622614)
>curl -sSL https://hyper.sh/install | bash

Seriously? Developers need to stop sprouting this crap as an install method. Nobody in their sane mine should curl a script into bash to install a product.

Re:Hyper – Hypervisor-agnostic Docker engine by Meai on Friday May 29, 2015 @12:21AM (#9622635)
There is no difference to running an executable. In fact, this is the BEST way to offer installation to users. He is literally showing you the source code so you can decide whether you actually want to run it or not. This stupid meme of not wanting to run scripts is just that: a meme.
Re:Hyper – Hypervisor-agnostic Docker engine by panhandlr on Friday May 29, 2015 @12:31AM (#9622668)
How many production servers have you been responsible for in your lifetime?

"There is no difference to running an executable. "

... There are these following differences.

1. That url, assuming no malicious 3rd-party/nation-state is spoofing the response, could return any different version of the installer resource at any given time.

2. That url might not always be available, for any number of reasons, and how is someone who wants to "discover" this software when they are looking through their available package list?

3. Who knows what that url is "suppose to do" ... there is no signing process, peer review process, nothing, you get whatever the apache server on the other side of that HTTP request wants to give you, and your gonna send that right into your root shell...

4. Unlike a package, sitting in my personal safe, self host, audited, self-verified debian package repository mirror ... this URL might not work tomorrow, it might not work at 3:35am when my primary server took a shit and i need to rebuild the whole stack... who knows what this URL will do in between subsequent runs... it could return 2 different things when I am trying to build a cluster of this product.

Re:Hyper – Hypervisor-agnostic Docker engine by quesera on Friday May 29, 2015 @12:56AM (#9622749)
0. Thousands. Tens of thousands, probably.

1. True of any download link as well.

2. See 1.

3. See 1, unspoken comparison to trusted package archives excepted.

4. Yes, getting your software into an official publishing channel is preferable, but not automatic, not immediate, and not without update latency.

I'm 110% with you on hating pipe to shell, however. Your arguments don't really address the issue.

And note also that you can just clone from github if you don't like piping to shell. And nothing prevents you from packaging it yourself in your own trusted repository. If you run serious infrastructure, you already do this.

Re:Hyper – Hypervisor-agnostic Docker engine by eropple on Friday May 29, 2015 @02:26AM (#9623045)
Even if you buy that encouraging users to uncritically pipe code to bash is a good idea - and I do not - this method of doing the curl/bash thing will very happily execute only a partial script if curl is interrupted in the middle.

So, no, it's very unambiguously not the "best" option, and maybe you should chill out a whole bunch, yeah?

Re:Hyper – Hypervisor-agnostic Docker engine by tbronchain on Friday May 29, 2015 @01:12AM (#9622775)
Hi, you can view, download, and install from source code by checking out our github https://github.com/hyperhq/hyper
Re:Hyper – Hypervisor-agnostic Docker engine by tlrobinson on Friday May 29, 2015 @01:25PM (#9625951)
While I'm not in the "'curl | sh' is evil" camp, it's certainly not as secure as installing a cryptographically-signed package (assuming you verify the signatures). HTTPS helps, but doesn't protect against a compromised server.
Re:Hyper – Hypervisor-agnostic Docker engine by sagichmal on Friday May 29, 2015 @04:01AM (#9623312)
Like it or not, this has become the canonical way of installing infrastructural software onto your development machine in the Docker (container) ecosystem. Of course, a competent ops dev would never do this in a production system. But for splash intros on marketing websites, yeah — this strom und drang about how it's incorrigible is getting a bit long in the tooth.
Re:Hyper – Hypervisor-agnostic Docker engine by jaytaylor on Friday May 29, 2015 @12:20AM (#9622628)
I think it would've been cooler if the url were https://install.hyper.sh

;)

Re:Hyper – Hypervisor-agnostic Docker engine by gnawux on Friday May 29, 2015 @01:05AM (#9622761)
you can try it now ;) cheers
Re:Hyper – Hypervisor-agnostic Docker engine by quesera on Friday May 29, 2015 @12:18AM (#9622624)
That can be fixed in 30 seconds.

The product is impressive, and it would be respectful to communicate your valid message respectfully.

Re:Hyper – Hypervisor-agnostic Docker engine by zobzu on Friday May 29, 2015 @12:22AM (#9622642)
to be honest, without a one liner install method you don't reach people. most will blindly click this even thus its quite terrible.

certainly a better method is needed, but none of the alternatives provide "1 click install" like curl | bash, and as long as it's the case we'll see that..

Re:Hyper – Hypervisor-agnostic Docker engine by resouer on Friday May 29, 2015 @02:20AM (#9623020)
After read through the install scripts, I admit I really like this method. Doesn't know why guys argues about that. If you need specific version or release, just checkout it out from github, after all, it's opensource man.
Re:Hyper – Hypervisor-agnostic Docker engine by VieElm on Friday May 29, 2015 @12:25AM (#9622652)
That's a serious bash script. That's the craziest bash script I've ever seen. It's like a full program. It is terrifying.
Re:Hyper – Hypervisor-agnostic Docker engine by quesera on Friday May 29, 2015 @12:49AM (#9622735)
Just to counterbalance your fear: it's really nothing special or weird.

It looks pretty straightforward, honestly.

Re:Hyper – Hypervisor-agnostic Docker engine by panhandlr on Friday May 29, 2015 @12:23AM (#9622644)
"Nobody in their sane mine should curl a script into bash to install a product"

This, so much this.

I was actually extremely excited over a similar product "flynn"... but they have also lost their mind when it comes to installation: https://flynn.io/docs/installation

> sudo bash < <(curl -fsSL https://dl.flynn.io/install-flynn)

Seriously?

How is that any easier than just providing a package for any given distro?

I mean, for fucks sake, just give me the URL to a tarball with a fucking Makefile in it. I can handle the rest, thank you very much.

The security concerns alone should force any sane system engineer to never pipe curl to sudo'ed bash process.

Re:Hyper – Hypervisor-agnostic Docker engine by icebraining on Friday May 29, 2015 @04:22AM (#9623377)
Would a zip with a Makefile do? Here: https://github.com/flynn/flynn/archive/master.zip

They have the source on Github, you're never forced to pipe curl to bash, it's just the default. Not a great default, admittedly, but hardly deserving all the hate.

How about contributing a PR with a script that produces OS packages, instead of complaining that the free cake doesn't come with a cherry on top?

Re:Hyper – Hypervisor-agnostic Docker engine by pekk on Friday May 29, 2015 @08:28AM (#9624117)
I guess people are upset that this is the "officially sanctioned" way of installing the tool.