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
#!/bin/pseudo-bash | |
# Read through this and modify to taste. | |
# Tested on: | |
# image_uuid: bad2face-8738-11e2-ac72-0378d02f84de | |
# smartos base64 1.9.0 | |
# | |
# jenkins is run as the "admin" user, with its home directory set to /home/admin/jenkins | |
mkdir ~/jenkins |
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
#!/bin/bash | |
# http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
wget --no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/8u77-b03/server-jre-8u77-solaris-x64.tar.gz" \ | |
-O jdk.tar.gz | |
mkdir -p /opt/local/java |
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
#!/bin/sh | |
# Copyright 2014 Typomedia Foundation. All rights reserved. | |
# Released under GPL version 3. | |
# | |
# Pkgin Repo Update Script v1.0alpha | |
# Update repositories.conf for pkgin, and set $PKG_PATH for pkg_add | |
export PKG_PATH=http://pkgsrc.joyent.com/packages/SmartOS/2014Q1/x86_64/All | |
echo $PKG_PATH > /opt/local/etc/pkgin/repositories.conf |
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
{ | |
"brand": "kvm", | |
"alias": "hxexsa", | |
"resolvers": [ | |
"8.8.8.8", | |
"8.8.4.4" | |
], | |
"ram": "12288", | |
"vcpus": "2", | |
"nics": [ |
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
#!/bin/bash | |
set -eo pipefail | |
semver_regex="^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$" | |
usage="\ | |
Usage: | |
$0 | |
$0 show |