Using Reahl in Vagrant

We prefer to install all development tools specific to a project inside a virtual machine managed by Vagrant.

Reahl provides a vagrant box with many tools we use installed and ready to go.

If you know Vagrant and have it set up on your machine, you can skip all Reahl installation instructions and instead just do the following:

  • Create a directory somewhere with the following VagrantFile:

    # -*- mode: ruby -*-
    # vi: set ft=ruby :
    
    Vagrant.configure(2) do |config|
      config.vm.box = "reahl/bionic64"
    
      config.vm.network "forwarded_port", guest: 8000, host: 8000
      config.vm.network "forwarded_port", guest: 8363, host: 8363
    
      config.vm.provision "shell", privileged: false, inline: <<-SHELL
        pip install reahl[all]
      SHELL
    end
    
    
  • Then do:

    vagrant up
    
If you do not know Vagrant, installing and learning it will serve you well for other things too. You’ll need to install:
  • Virtualbox (on linux, just install virtualbox from your distribution’s repositories); and
  • Vagrant itself (preferably always use the instructions on www.vagrantup.com).

Previous topic

Install Reahl

Next topic

Preparing for installation on Ubuntu