This project embeds the MusicBrainz server in slave mode, along with its search server, its search indexer, and its dependencies Redis and PostgreSQL, in a VM.
Beta images built for VirtualBox are released here:
ftp://ftp.eu.metabrainz.org/pub/musicbrainz-vm/
Read VM usage for usage instructions.
Only do these steps if you want to go the looong way, otherwise download an image from the above links instead.
Please note that build scripts do not support Windows, using VirtualBox for Mac or Linux should work fine.
- Make sure you have 100GB free (preferably SSD) disk space (including 55GB for pg-data.vdi)
- Clone this repo
- Install VirtualBox. If you already have it installed, update to the lastest version!
- Install Vagrant. Get the latest version! (1.8.x+) https://www.vagrantup.com/
- run install.sh
- Wait.
- Wait some more.
- Really, wait more.
- You're thinking about complaining how slowly this is going? You should wait some more.
- Better be safe than sorry, wait some more.
- With some amount of luck you'll have a working VM without search indexes at this point.
Note that every remote command mentionned in VM usage instructions can be run with:
$ vagrant ssh -- _remote command_
Once the VM is built, a few cleanup bits should be done:
-
Delete the datadump files from /media/dbdump
-
Compress the data volume with this command:
vboxmanage modifymedium disk --compact <uuid>
Stop the Vagrant environment:
$ vagrant halt
Export the compacted VM:
$ export.sh
Do a little dance.