Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from source in Vagrant #262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Please install the following:
* `unzip`
* `strace`
* `curl`
* `git`
* ImageMagick
* [Clang compiler](http://clang.llvm.org/) version 3.4 or better
* [Meteor](http://meteor.com)
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Use a shell script to "provision" the box. This install Sandstorm using
# the bundled installer.
config.vm.provision "shell",
inline: "cd /vagrant && echo localhost > /etc/hostname && hostname localhost && sudo ./install.sh -d -e"
inline: "cd /vagrant && echo localhost > /etc/hostname && hostname localhost && sudo ./install-dev.sh"

# Make the vagrant user part of the sandstorm group so that commands like
# `spk dev` work
Expand Down
18 changes: 18 additions & 0 deletions install-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /bin/bash

# Builds and installs Sandstorm from source on Ubuntu Trusty Tahr.

set -e

sudo apt-get update
sudo apt-get install git libcap-dev xz-utils imagemagick clang-3.5 zip

sudo ln -s /usr/bin/clang-3.5 /usr/bin/clang
sudo ln -s /usr/bin/clang++-3.5 /usr/bin/clang

# Install Meteor
curl https://install.meteor.com/ | sh

# Build and install Sandstorm
make
make install