Created
June 28, 2014 15:24
-
-
Save trevorah/08e843a20282e3cba970 to your computer and use it in GitHub Desktop.
SmartOS with 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
vagrant init livinginthepast/smartos-base64-13.4.0 | |
vagrant plugin install vagrant-smartos-zones | |
vim 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
vagrant up | |
# Please be patient and watch an episode of Adventure Time | |
vagrant zones list | |
> name state uuid | |
> nodejs-zone running a8f967d6-b3bb-46e2-b45c-9e60db490f67 | |
# Login into the zone | |
vagrant zlogin nodejs-zone | |
[root@a8f967d6-b3bb-46e2-b45c-9e60db490f67 ~]# node -v | |
> v0.10.28 | |
# Party!! |
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
# -*- 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| | |
config.vm.box = "livinginthepast/smartos-base64-13.4.0" | |
config.vm.provider "virtualbox" do |v| | |
v.memory = 3072 | |
end | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
config.zone.name = 'nodejs-zone' | |
config.zone.image = '45ad5854-db8b-11e3-8f4c-0bc011b22b7d' | |
config.zone.brand = 'joyent' | |
config.zone.memory = 2048 | |
config.zone.disk_size = 5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment