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
# assuming you have Joyent Compute Service available | |
sdc-createmachine --dataset b83f8276-1fdd-11e3-989b-4bddb088a8a0 --package g3-standard-0.625-smartos --name alain-demo-$(uuid) | json -a id |
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
#!/usr/bin/env bash | |
sdc-createmachineandwait 17c98640-1fdb-11e3-bf51-3708ce78e75a g3-highcpu-1.75-smartos |
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
# "Make OmniOS act as a SmartMachine" Knife Bootstrap | |
# Copy this file to: ~/.chef/bootstrap/joyent-smartmachine.erb | |
# To use via Knife: knife bootstrap <hostname|ip> -d joyent-smartmachine [-r recipe1,recipe2,...] [-N nodename] | |
bash -c ' | |
cat > /etc/release <<'EOF' | |
SmartOS x86_64 | |
Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. | |
Copyright 2010-2012 Joyent, Inc. All Rights Reserved. |
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
#!/usr/bin/env bash | |
# get list of installed packages | |
pkg_info | cut -d' ' -f 1 | sed 's/-[^-]*$//' > packages.list | |
# replace existing PKGSRC | |
rm -Rf /opt/local /var/db/pkgin | |
curl -s http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-$PKGSRC-$ARCH.tar.gz | gzcat | (cd /; tar -xpf -) | |
pkgin -y update | |
pkgin -y upgrade |
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
#!/usr/bin/env bash | |
git clone [email protected]:AlainODea-haskell/amqp.git | |
git clone [email protected]:vincenthz/hs-connection.git | |
git clone [email protected]:vincenthz/hs-tls.git | |
git clone git://github.com/haskell/cabal.git | |
pushd cabal | |
cabal install Cabal/ cabal-install/ | |
export PATH=~/.cabal/bin:$PATH | |
popd | |
pushd hs-connection |
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
From 5c5ea6bb96522a42634c9e803f387a617c70238e Mon Sep 17 00:00:00 2001 | |
From: Alain O'Dea <[email protected]> | |
Date: Wed, 5 Feb 2014 21:24:28 +0000 | |
Subject: [PATCH] BUGFIX: Handle eROFS as permission denied | |
--- | |
System/Posix/Files.hsc | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc |
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
#!/usr/sbin/dtrace -s | |
#pragma D option destructive | |
proc:::exec-success | |
/execname == $$1/ | |
{ | |
trace(pid); | |
stop(); | |
system("pargs %d ; prun %d", pid, pid); |
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
#!/usr/sbin/dtrace -s | |
#pragma D option destructive | |
syscall::exec*:entry | |
/copyinstr(arg0) == "/usr/bin/ld"/ | |
{ | |
trace(pid); | |
stop(); | |
system("pargs %d", pid); |
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
#!/usr/bin/env bash | |
# assuming: pkgin -y install build-essential haskell-platform | |
git clone https://github.com/ghc/packages-unix.git | |
cd packages-unix/ | |
git checkout -b smartos-fix-ghc-7.6.3 ghc-7.6.3-release | |
git apply ../patch-System-Posix-Files.hsc | |
autoreconf -i | |
cabal configure | |
cabal build | |
# this is an ugly hack |
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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="ghc-builder-client"> | |
<service name="site/ghc-builder-client" type="service" version="1"> | |
<create_default_instance enabled="false" /> | |
<single_instance /> | |
<dependency name='network' grouping='require_all' restart_on='error' type='service'> | |
<service_fmri value='svc:/milestone/network:default' /> | |
</dependency> | |
<dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'> |