librelist archives

« back to archive

Feature idea: curl-based Linux install

Feature idea: curl-based Linux install

From:
Steve Klabnik
Date:
2012-01-05 @ 17:53
hey everyone!

So, the .run situation has sorta been a problem for a while. There's
too many variables, it's really difficult to get right, and one thing
always works: compile your own Shoes.

So what if we followed the lead of projects like pow, rvm, and others:
a .sh based script that runs the compilation stuff for you.

If you haven't seen this, basically, you do something like this:

$ curl get.pow.cx | sh

And bam! Stuff gets compiled, environment variables get set, etc.

What about doing this for Shoes? We could compile your own shoes into
/usr/local, and then have you add a line to your .bashrc to add it to
your $PATH.

Thoughts?

Re: [shoes] Feature idea: curl-based Linux install

From:
J. Kaiden
Date:
2012-01-05 @ 18:41
hey Steve,

  sounds like a decent idea...  packaging is definitely big selling point
for Shoes, but unfortunately it doesn't work so well with linux - maybe the
curl approach is a good one....

  i saw this thread the other day on the ruby forum -
http://www.ruby-forum.com/topic/3316172#new - something like this adapted
to Shoes could be interesting too...

  good to see so much activity going on...

  Shoes On!

 - j






On Thu, Jan 5, 2012 at 6:53 PM, Steve Klabnik <steve@steveklabnik.com>wrote:

> hey everyone!
>
> So, the .run situation has sorta been a problem for a while. There's
> too many variables, it's really difficult to get right, and one thing
> always works: compile your own Shoes.
>
> So what if we followed the lead of projects like pow, rvm, and others:
> a .sh based script that runs the compilation stuff for you.
>
> If you haven't seen this, basically, you do something like this:
>
> $ curl get.pow.cx | sh
>
> And bam! Stuff gets compiled, environment variables get set, etc.
>
> What about doing this for Shoes? We could compile your own shoes into
> /usr/local, and then have you add a line to your .bashrc to add it to
> your $PATH.
>
> Thoughts?
>

Re: [shoes] Feature idea: curl-based Linux install

From:
James Gifford
Date:
2012-01-05 @ 18:52
Similar to the AUR shoes package? 

http://aur.archlinux.org/packages/sh/shoes/PKGBUILD

Cheers,
James Gifford

On Jan 5, 2012, at 12:53, Steve Klabnik <steve@steveklabnik.com> wrote:

> hey everyone!
> 
> So, the .run situation has sorta been a problem for a while. There's
> too many variables, it's really difficult to get right, and one thing
> always works: compile your own Shoes.
> 
> So what if we followed the lead of projects like pow, rvm, and others:
> a .sh based script that runs the compilation stuff for you.
> 
> If you haven't seen this, basically, you do something like this:
> 
> $ curl get.pow.cx | sh
> 
> And bam! Stuff gets compiled, environment variables get set, etc.
> 
> What about doing this for Shoes? We could compile your own shoes into
> /usr/local, and then have you add a line to your .bashrc to add it to
> your $PATH.
> 
> Thoughts?

Re: [shoes] Feature idea: curl-based Linux install

From:
Steve Klabnik
Date:
2012-01-05 @ 18:59
Yep!

Re: [shoes] Feature idea: curl-based Linux install

From:
James Gifford
Date:
2012-01-05 @ 19:09
hm. that sounds a heckuva lot easier to do than that makefile I was
trying to write.

I'll see what I can do with that, I might be able to put a crude
postinstall script together somehow that does this and then send an
email here with details of how to test it?


Cheers,
James Gifford



On Thu, Jan 5, 2012 at 1:59 PM, Steve Klabnik <steve@steveklabnik.com> wrote:
> Yep!

Re: [shoes] Feature idea: curl-based Linux install

From:
Steve Klabnik
Date:
2012-01-05 @ 19:16
That'd be great!

Re: [shoes] Feature idea: curl-based Linux install

From:
serialhex
Date:
2012-01-05 @ 19:23
+1 curl solution!!

hex
-- 
*  my blog is cooler than yours: http://serialhex.github.com
*  The wise man said: "Never argue with an idiot. They bring you down to
their level and beat you with experience."
*  As a programmer, it is your job to put yourself out of business. What
you do today can be automated tomorrow. ~Doug McIlroy
No snowflake in an avalanche ever feels responsible.
---
CFO: “What happens if we train people and they leave?”
CTO: “What if we don’t and they stay?”

Re: [shoes] Feature idea: curl-based Linux install

From:
Steve Klabnik
Date:
2012-01-05 @ 21:12
One more thought: https://github.com/wayneeseguin/rvm/tree/feature/shoes

Re: [shoes] Feature idea: curl-based Linux install

From:
serialhex
Date:
2012-01-05 @ 21:21
On Thu, Jan 5, 2012 at 4:12 PM, Steve Klabnik <steve@steveklabnik.com>wrote:

> One more thought: https://github.com/wayneeseguin/rvm/tree/feature/shoes
>

???  rvm pulling shoes?????  is that what this is???

...if so, it is pretty cool, and probably very easy & doable!  i like it!!!
 (esp cause i already have rvm & all on my linux box...)  i probably won't
have the time/skills to implement this, but i can test this if/when people
start!!
hex

-- 
*  my blog is cooler than yours: http://serialhex.github.com
*  The wise man said: "Never argue with an idiot. They bring you down to
their level and beat you with experience."
*  As a programmer, it is your job to put yourself out of business. What
you do today can be automated tomorrow. ~Doug McIlroy
No snowflake in an avalanche ever feels responsible.
---
CFO: “What happens if we train people and they leave?”
CTO: “What if we don’t and they stay?”

Re: [shoes] Feature idea: curl-based Linux install

From:
Steve Klabnik
Date:
2012-01-05 @ 21:26
yeah, mpapis started 'rvm install shoes'. But it didn't quite work yet.

Bringing that branch up to date and finishing it would also be a good solution.

Re: [shoes] Feature idea: curl-based Linux install

From:
Tobias Pfeiffer
Date:
2012-01-05 @ 21:25
On 01/05/2012 10:12 PM, Steve Klabnik wrote:
> One more thought: https://github.com/wayneeseguin/rvm/tree/feature/shoes
Cool stuff! :-D I like it... !

Re: [shoes] Feature idea: curl-based Linux install

From:
James Gifford
Date:
2012-01-05 @ 21:28
Ok, did some investigation.

It's entirely possible - in fact, I've got the basic thing over in a
gist right now[1]

Three problems:

1. pulling in from develop is not "OK".
2. master is too old for any linux released in the past year or two.
3. downloading the zip from master (in addition to 2) means we don't
have a gemfile: https://github.com/shoes/shoes/zipball/3.0.0
4. bundler doesn't like sudo bundle install, making 3 somewhat
irrelevant. Workaround is to just do `gem install $all-the-gems`.

Also, that rvm thing steve sent isn't an option, because a systemwide
rvm on ubuntu is pretty unstable and almost evil, and this is a
unstable rvm.

That leaves us with a few options:

1. Pull from a stable snapshot of develop, since master is too old for
any linux released in the past year or two.
2. make a release nowish. I'm willing to work on cherry picking the
stuff needed for that.

Any ideas, thoughts, am I completely insane? :)

[1] https://gist.github.com/1567370

Re: [shoes] Feature idea: curl-based Linux install

From:
Steve Klabnik
Date:
2012-01-05 @ 21:32
sudo gem install breaks rvm.

>  a systemwide rvm on ubuntu is pretty unstable and almost evil, and this
is a unstable rvm.

Really? That's what I use for production deployments...

> 1. pulling in from develop is not "OK".

I'm perfectly fine with cutting some kind of release. We release too
infrequently. Doing a few releases would do us some good.

Re: [shoes] Feature idea: curl-based Linux install

From:
James Gifford
Date:
2012-01-05 @ 21:37
On Thu, Jan 5, 2012 at 4:32 PM, Steve Klabnik <steve@steveklabnik.com> wrote:
> sudo gem install breaks rvm.
>
>>  a systemwide rvm on ubuntu is pretty unstable and almost evil, and 
this is a unstable rvm.
>
> Really? That's what I use for production deployments...
thats my experience, but i haven't tried recently (read: 6+ months).
entirely possible that they've shaped things up a lot. I'm willing to
fire up my VM and give it a go again in a little bit.

>
>> 1. pulling in from develop is not "OK".
>
> I'm perfectly fine with cutting some kind of release. We release too
> infrequently. Doing a few releases would do us some good.

Agreed, get something into the hands of the users, get us excited.
Whats the "procedure" for a release? (probably should move to another thread...)