Last active
October 12, 2016 02:59
-
-
Save gasolin/58c4ac641f8afe3df0f6aad7be4efbf1 to your computer and use it in GitHub Desktop.
Vagrantfile for elementary OS VM setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$bootstrap = <<SCRIPT | |
!/bin/bash | |
SCRIPT | |
# To use this script and prepare your build environment, run the following | |
# command in the same directory as the Vagrantfile. | |
# B2G_PATH={path to your B2G directory} vagrant up | |
VAGRANTFILE_API_VERSION = "2" | |
# Detect platform | |
def is_windows | |
processor, platform, *rest = RUBY_PLATFORM.split("-") | |
platform === 'mingw32' | |
end | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Use ubuntu 14.04 | |
config.vm.box = "TimWSpence/elementaryos" | |
# Run the bootsrap script on start. | |
cnode.vm.provision :shell, :inline => $bootstrap | |
end | |
# setup shared folder to vmshare | |
# guest http://www.htpcbeginner.com/mount-virtualbox-shared-folder-on-ubuntu-linux/ | |
#sudo usermod -a -G vagrant | |
#sudo ln -s /media/sf_vmshare /home/vagrant/vmshare | |
#git remote add central hg::https://hg.mozilla.org/mozilla-central -t branches/default/tip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment