Discourse Vagrant contains old bundler


(Paolo G. Giarrusso) #1

Hi all!
While setting up a Discourse dev. environment with Vagrant, I saw these warnings:

vagrant@precise32:/vagrant (master)]$ bundle install
You are running an old version of bundler, please upgrade bundler ASAP, if you are using Discourse docker, rebuild your container.
You are running an old version of bundler, please upgrade bundler ASAP, if you are using Discourse docker, rebuild your container.

Could you please fix the image to prevent that warning? The included version of bundler seems indeed very old.

I tried myself, gem install bundler fails due to permission errors, but sudo gem install bundler seems to work correctly. Is that what I’m supposed to do? I’m no experience Rubyist, and some discourage sudo gem ....
Anyway, output I got:

[vagrant@precise32:/vagrant (master)]$ gem install bundler
Fetching: bundler-1.12.2.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /var/lib/gems/2.2.0 directory.
[vagrant@precise32:/vagrant (master)]$ sudo gem install bundler
Fetching: bundler-1.12.2.gem (100%)
Successfully installed bundler-1.12.2
1 gem installed