Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Turn rake-compiler-dev-box into a Vagrant box (Cloud) #14

Open
luislavena opened this issue Sep 21, 2014 · 2 comments
Open

Turn rake-compiler-dev-box into a Vagrant box (Cloud) #14

luislavena opened this issue Sep 21, 2014 · 2 comments

Comments

@luislavena
Copy link
Contributor

Hello!

As I start to assist some gem developers to use rake-compiler-dev-box into their workflows, I found myself repeating setup instructions around the usage of this project (clone, commands, etc).

Now, thanks to Vagrant Cloud it should be possible distribute this project like that, allow us reduce the setup instructions to vagrant box add tjshuck/rake-compiler-dev-box.

I'm opening this as placeholder request so we can workout the requirements and changes to make this possible.

Looking forward your comments and suggestions!

❤️ ❤️ ❤️

/cc @tjschuck @larskanis

@larskanis
Copy link
Contributor

Hi @tjschuck , hi @luislavena ,

I was a bit annoyed by the performance of the vagrant box and about the setup (particular the requirement to repeatedly build the box from the start). So I decided to build something similar that is based on docker: rake-compiler-dock

It should be easier to use and to integrate it into workflows. The performance on Linux is equal to a native installation and the performance on Windows is due to the boot2docker virtualisation equal to that of the rake-compiler-dev-box.

Any thoughts?

@larskanis
Copy link
Contributor

For now I did not integrate the package_* commands of the rake-compiler-dev-box into the docker image. This is because I think the workflow for native gems should be more close to the workflow for building source gems. INHO, the default should be, that the gem author installs dependent gems and run it's rake tasks explicit by itself. This is how he builds source gems, too. This also leaves the freedom to choose other ways than bundler to install dependent gems or to define other rake tasks for doing the (cross) build.

I also removed JRuby from the image, because I think Java and JRuby is easily installable on any platform, so that the value of JRuby within image is not very high. This saves us 400 MByte image size.

rake-compiler-dock works on Linux and Windows. So far I've not tested it on OS-X, but provided that it works there equally, it could replace rake-compiler-dev-box in the future. What do you think?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants