Looks like I did not need to convert to 32bit as the original heroku
box is loading fine now.
There was a different issue with a bad version of VirtualBox on my 10.5 mac that was preventing
the vagrant original heroku box from running - which led me to fork this in the first place.
It kept erroring out with VERR_NO_MEMORY
. That was solved by upgrading to VirtualBox 4.1.18.
I was not able to test the 32bit version of this after making the config changes. I ran into issues installing the correct ruby version and gems while trying to bundle it. (I was running inside another Vagrant box to try and develop the new 32bit heroku version.)
I may come back to this as a personal project to practice on later...
This is a veewee template for building a Vagrant box that closely mirrors the heroku Cedar stack. You can build it yourself by following the directions below or install a prebuilt version from here.
Add the following to your Vagrantfile
.
Vagrant::Config.run do |config|
config.vm.box = "heroku"
config.vm.box_url = "https://dl.dropboxusercontent.com/s/rnc0p8zl91borei/heroku.box"
end
And run vagrant up
. The box will be downloaded and imported for you.
This box was last updated 8/19/13. For the latest changes, please follow the instructions below.
First, clone the repo and install gems with bundler.
$ git clone https://github.com/ejholmes/vagrant-heroku.git
$ cd vagrant-heroku
$ bundle install
Next, build the box with veewee. Go grab a cup of coffee because this is gonna take a while.
$ bundle exec veewee vbox build heroku
There is also a 2x dyno box available, just substitute every instance of heroku
with heroku-2x
.
And finally, install the box for use with Vagrant.
$ bundle exec veewee vbox export heroku
$ vagrant box add heroku heroku.box
Now all you have to do is setup vagrant in your project.
$ vagrant init heroku
$ vagrant up
$ vagrant ssh
The packages that are included are carefully selected to closely match those on the Celadon Cedar stack.
- Ubuntu 10.04 64bit
- Ruby 2.0.0-p247 MRI
- RubyGems 2.0.3
- Python with pip, virtualenv, and virtualenvwrapper
- PostgreSQL 9.2.4
- NodeJS 0.4.7
- Foreman https://github.com/ddollar/foreman