-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds Vagrantfile with ubuntu+node+Redis. #4
- Loading branch information
Showing
3 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ node_modules | |
|
||
# Users Environment Variables | ||
.lock-wscript | ||
# Ignore Vagrant VM | ||
.vagrant |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# detailed instructions for installing | ||
$script = <<SCRIPT | ||
# update ubuntu (security etc.) | ||
apt-get update | ||
# nodejs | ||
sudo apt-get -y install build-essential tcl8.5 g++ git git-core nodejs npm | ||
# use https://github.com/visionmedia/n to get latest node+npm | ||
# sudo npm install n -g | ||
# sudo n stable | ||
# node -v | ||
# install Redis following http://redis.io/topics/quickstart | ||
wget http://download.redis.io/redis-stable.tar.gz | ||
tar xvzf redis-stable.tar.gz | ||
cd redis-stable | ||
# sudo make me a sandiwch --> https://xkcd.com/149/ | ||
sudo make | ||
sudo make install | ||
redis-server | ||
SCRIPT | ||
|
||
|
||
Vagrant.configure("2") do |config| | ||
|
||
# config.vm.box = "base" | ||
config.vm.box = "ubuntu-nodejs-redis-server" | ||
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | ||
|
||
config.vm.network :forwarded_port, guest: 6379, host: 6379 | ||
# Create a private network, which allows host-only access to the machine | ||
# using a specific IP. | ||
config.vm.network :private_network, ip: "192.168.33.10" | ||
config.vm.provision :shell, :inline => $script | ||
|
||
end |