Last active
August 17, 2016 19:11
-
-
Save leocavalcante/46afaafeb10599797cc6 to your computer and use it in GitHub Desktop.
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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "public_network" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.memory = 1024 | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
# Installing the JDK | |
sudo apt-get install --yes openjdk-7-jdk | |
# If you're running on a 64 bit machine, the Android SDK & emulator also needs some 32 bit libraries | |
sudo apt-get install --yes lib32z1 lib32stdc++6 | |
# Downloading and extracting Android SDK | |
wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz | |
tar -zxvf android-sdk_r24.3.4-linux.tgz | |
# Setup environment | |
export ANDROID_HOME=/home/vagrant/android-sdk-linux | |
export PATH=$PATH:ANDROID_HOME/tools | |
export PATH=$PATH:ANDROID_HOME/platform-tools | |
# Downloading and Installing Android SDK targets | |
./android-sdk-linux/tools/android update sdk -u | |
# Maybe you shold run | |
# ./android list sdk | |
# And filter what you need | |
# ./android update sdk -u --filter 1,2,3,tool,platform-tool | |
# Essentials | |
sudo apt-get install git | |
sudo apt-get install npm | |
# Installing Cordova | |
sudo npm install corvova -g | |
# Finally | |
sudo curl https://install.meteor.com/ | sh | |
# MongoDB wont start at a synced folder, partion type problem I guess | |
cd /vagrant | |
mkdir ~/app | |
cp -r .meteor/ ~/app/.meteor | |
rm -rf .meteor/ | |
mkdir .meteor/ | |
sudo mount --bind /home/vagrant/app/.meteor/ /vagrant/.meteor/ | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment