Why reference app distro uses vagrant basebox 'openMRSBase', and where does it come from?

Reference application distro has a Vagrantfile (which is awesome!), but the basebox is defined as:

# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "openMRSBase"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://goo.gl/8kWkm"

This URL is quite surprising as well:

$ wget --spider http://goo.gl/8kWkm
Spider mode enabled. Check if remote file exists.
--2015-02-11 14:38:40--  http://goo.gl/8kWkm
Resolving goo.gl... 216.58.220.142, 2404:6800:4006:800::200e
Connecting to goo.gl|216.58.220.142|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://f.willianfernandes.com.br/vagrant-    boxes/UbuntuServer12.04amd64.box [following]
Spider mode enabled. Check if remote file exists.
--2015-02-11 14:38:40--  http://f.willianfernandes.com.br/vagrant-boxes/UbuntuServer12.04amd64.box
Resolving f.willianfernandes.com.br... 192.34.59.99
Connecting to f.willianfernandes.com.br|192.34.59.99|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 279808512 (267M) [application/octet-stream]
Remote file exists.

I don’t think willianfernandes is an OpenMRS developer, the .br makes it even more suspicious.

Blaming the line gives me commit 6f0df81a92e6551845b2208705daaea8eefa001d, issue RA-46, but really no explanation what exactly is that box or how it was generated.

Can we assume it’s a plain Ubuntu 12.04 mirrored somewhere else? Should I change it to vanilla Ubuntu mirror instead? I tested locally, it looks fine.

1 Like

I would definitely go with an official ubuntu vagrant box image as those are readily available now. Maybe something like this https://atlas.hashicorp.com/ubuntu/boxes/precise64. As that site is linked from the vagrant site.

Yeah, I agree.

Should we try ubuntu 14.04 box?

Yeah that would be best. Although It will require a slight bit more work than just changing out the box. For example, the puppet aptitude module will need to be updated to reflect the trusty repos.

BTW, Breeze was just in IRC last night … so he’s not gone forever. I was going to @-mention him here but he hasn’t signed in to Talk yet. We might see him again on IRC in the next few days hopefully and could find out what happened here.

I missed this thread before, but definitely we should switch for the official one.

Searching on github.com for http://goo.gl/8kWkm actually comes up with 55 code hits of people referring to this, so I guess it must have been pretty common before there were official boxes.