Created
March 26, 2014 16:14
-
-
Save whoisjake/9787007 to your computer and use it in GitHub Desktop.
Vagrant file that will load an entire Spark development hacking environment. Download this raw and rename it to Vagrantfile
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
$script = <<SCRIPT | |
apt-get update --fix-missing | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:terry.guo/gcc-arm-embedded | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y gcc-arm-none-eabi | |
apt-get install -y dfu-util | |
apt-get install -y git-core | |
cd /tmp | |
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x64.tar.gz | |
cd /usr/local && tar --strip-components 1 -xzf /tmp/node-v0.10.26-linux-x64.tar.gz | |
npm install -g spark-cli --silent | |
mkdir -p /home/vagrant/src | |
cd /home/vagrant/src | |
git clone https://github.com/spark/core-firmware.git | |
git clone https://github.com/spark/core-communication-lib.git | |
git clone https://github.com/spark/core-common-lib.git | |
chown vagrant:vagrant -R /home/vagrant | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.provision "shell", inline: $script | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gotta rename it from Vagrantfile.spark to Vagrantfile:
Download: https://www.virtualbox.org/wiki/Downloads
Download: http://www.vagrantup.com/downloads.html
run:
You'll be dropped into an Ubuntu ssh session with all the tools necessary...
You'll have the Tinker app firmware built!