Created
March 20, 2014 20:46
-
-
Save kevsmith/9673457 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/sh | |
| set -o errexit | |
| set -o xtrace | |
| # use kernel.org because it is way faster than ubuntu's mirror | |
| sed -i 's/us.archive.ubuntu.com/mirrors.us.kernel.org/g' /etc/apt/sources.list | |
| # Add Erlang Solutions' repos to apt | |
| #cat > /etc/apt/sources.list.d/erlang_solutions.list <<EOF | |
| # deb http://packages.erlang-solutions.com/debian wheezy contrib | |
| # deb http://packages.erlang-solutions.com/debian squeeze contrib | |
| # EOF | |
| # Add their key so apt doesn't whine | |
| # wget http://packages.erlang-solutions.com/debian/erlang_solutions.asc -O /tmp/key.asc | |
| # apt-key add /tmp/key.asc && rm -f /tmp/key.asc | |
| # Make sure we get fresh packages | |
| apt-get update | |
| apt-get install -y build-essential automake autoconf git | |
| wget -q http://www.erlang.org/download/otp_src_R16B03-1.tar.gz | |
| tar xzf otp_src_R16B03-1.tar.gz | |
| cd otp_src_R16B03-1 && ./configure --without-javac --prefix=/usr/local | |
| cd otp_src_R16B03-1 && make -j2 && make -j2 install | |
| git clone git://github.com/rebar/rebar.git /tmp/rebar | |
| cd /tmp/rebar && make && cp rebar /usr/local/bin | |
| /opt/vagrant_ruby/bin/gem install --no-ri --no-rdoc fpm | |
| cd /vagrant/galactus | |
| make pkg && mv *.deb /tmp/host | |
| shutdown -P -q now |
This file contains hidden or 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
| pkg: galactus | |
| vagrant up | |
| cp /tmp/galactus*.deb . && vagrant destroy | |
| galactus: | |
| git clone /Users/ksmith/work/repos/galactus galactus |
This file contains hidden or 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 : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| vm_ram = ENV['VAGRANT_VM_RAM'] || 2048 | |
| vm_cpu = ENV['VAGRANT_VM_CPU'] || 2 | |
| vm_cpu_cap = ENV['VAGRANT_VM_CPU_CAP'] || 70 | |
| config.vm.box = "precise64" | |
| config.vm.provider :virtualbox do |vb| | |
| vb.customize ["modifyvm", :id, "--memory", vm_ram, "--cpus", vm_cpu, "--cpuexecutioncap", vm_cpu_cap] | |
| end | |
| config.vm.synced_folder "/tmp", "/tmp/host" | |
| config.vm.provision :shell, :inline => "/vagrant/init.sh" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment