-
Install Vagrant
-
Install SmartOS guest detection
vagrant plugin install vagrant-smartos-guest
- Install zones support
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>eclips3.media (ECLM)</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
## Set up SmartOS in VirtualBox | |
# http://www.perkin.org.uk/posts/automated-virtualbox-smartos-installs.html | |
# set up global zone with Joyent datasets | |
if [[ ! -e /var/db/imgadm/sources.list || `grep -v "https://datasets.joyent.com/datasets" /var/db/imgadm/sources.list` ]]; then | |
echo "https://datasets.joyent.com/datasets" >> /var/db/imgadm/sources.list | |
fi | |
imgadm update |
gem install vagrant | |
vagrant box add omnios http://omnios.omniti.com/media/omnios-latest.box | |
vagrant init omnios | |
vagrant up |
{ | |
"brand": "joyent", | |
"dataset_uuid": "60a3b1fa-0674-11e2-abf5-cb82934a8e24", | |
"alias": "base64", | |
"hostname": "base64", | |
"max_physical_memory": 512, | |
"quota": 20, | |
"nics": [ | |
{ | |
"interface": "net0", |
# Wanelo Universal Bootstrap Script (W.U.B.S.) | |
bash -c ' | |
# Linux Distros: | |
if [ $(uname -s | grep Linux) ]; then | |
true && curl -s -L https://www.opscode.com/chef/install.sh | bash | |
# Illumos Distros: | |
elif [ $(uname -s | grep SunOS) ]; then |
pkgin -y in build-essential gcc47 gcc47-libs libyaml | |
wget -N http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | |
tar xvf ruby-2.0.0-p247.tar.gz | |
cd ruby-2.0.0-p247 | |
export LDFLAGS='-R/opt/local -L/opt/local/lib' | |
CXXFLAGS="-m64 -O3 -g -Wall" bash ./configure --prefix=$HOME/ruby-2.0.0 --with-opt-dir=/opt/local --enable-shared ac_cv_func_dl_iterate_phdr=no CFLAGS="-R -fPIC" rb_cv_have_signbit=no | |
make |
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 |
#!/bin/bash | |
# Simple Ad Hoc Carbon Cache Service | |
# | |
# put in /opt/custom/share/svc/carbon-cache.sh | |
set -o xtrace | |
. /lib/svc/share/smf_include.sh | |
cd / | |
PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH |
Install Vagrant
Install SmartOS guest detection
vagrant plugin install vagrant-smartos-guest
common: &common | |
adapter: postgresql | |
host: 127.0.0.1 | |
port: 5432 | |
username: ******* | |
password: ******* | |
encoding: unicode | |
pool: 20 | |
min_messages: WARNING | |
schema_search_path: public |