Skip to content

Instantly share code, notes, and snippets.

@michael
Last active August 29, 2015 14:14
Show Gist options
  • Save michael/75060b18bdfa63614e41 to your computer and use it in GitHub Desktop.
Save michael/75060b18bdfa63614e41 to your computer and use it in GitHub Desktop.
Virtual Box Cheating

See local available dist images (they are stored locally around 400mb size they have)

vagrant box list

To create a new vagrant env do this:

vagrant init

Now edit Vagrantfile

config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"

Also, under /vagrant the directory in which the Vagrantfile lies gets accessible.

Then we configure a few things in a provision.sh like installing elastic search

See Vagrantfile and provision.sh in https://github.com/elifesciences/lens-indexer

Now we are ready.

vagrant up

To reprovision use:

vagrant provision

To login as su (you are logged in as vagrant that has sudo rights):

vagrant ssh

To wipe the images:

vagrant destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment