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
// Get credentials and URL for Jenkins server from args | |
// This constructor builds URL of "http://host:port/path", e.g., localhost, 8080, "" for default install | |
jenkinsClient = new JenkinsClient(jenkinsHost, jenkinsPort, jenkinsPath, jenkinsUser, jenkinsPass) | |
// Also Process input arguments (args) to get any global params for Jenkins job | |
for(int i=0; i<batchSize; i++){ | |
// update/obtain job-specific params | |
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
FROM ubuntu:12.04 | |
MAINTAINER Bryan Robbins <bryantrobbins@gmail.com> | |
# Get latest packages | |
RUN apt-get update && apt-get clean | |
# Needed for Jenkins | |
RUN apt-get install --no-install-recommends openjdk-7-jdk -y | |
# Needed for Jenkins jobs |
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
FROM ubuntu:14.04 | |
MAINTAINER Bryan Robbins <bryantrobbins@gmail.com> | |
# Get latest packages | |
RUN echo "deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 | |
RUN apt-get update && apt-get clean | |
# Needed for Jenkins | |
RUN apt-get install --no-install-recommends openjdk-7-jdk -y |
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
apply plugin: 'java' | |
apply plugin: 'maven' | |
apply plugin: 'groovy' | |
import org.apache.commons.io.IOUtils | |
import org.apache.commons.io.FileUtils | |
import static com.xlson.groovycsv.CsvParser.parseCsv | |
// Load properties or defaults | |
def min_gamma_val = hasProperty('min_gamma') ? min_gamma : '' |
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
apply plugin: 'java' | |
apply plugin: 'maven' | |
apply plugin: 'groovy' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile 'org.codehaus.groovy:groovy-all:2.3.8' |
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
# I am a novice at R, so please forgive this example. | |
# After hours of Google-ing, tweaking, and trying a bunch of stuff, this was the only | |
# way I could come up with for constructing a set of columns to be dropped from a data.table, | |
# then dropping those columns. | |
# | |
# I expect that any R pros that stumble across this may have comments. Please feel free to suggest edits/leave comments. | |
# | |
# Library loading | |
library('data.table') |
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 -v | |
# Add your app build steps here | |
# Assume that these steps produce a "dist" folder at this level | |
# Prepare packer variables | |
repoName=$1 | |
imageVersion=$2 | |
chmod 700 fetch.sh | |
./fetch.sh $repoName $imageVersion > variables.json |
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
"BuildServer" : { | |
"Type" : "AWS::EC2::Instance", | |
"DependsOn" : "AttachGateway", | |
"Metadata" : { | |
"AWS::CloudFormation::Init" : { | |
"config" : { | |
"sources" : { | |
"/root" : "https://github.com/bryantrobbins/standard-aws/tarball/master" | |
}, | |
"files" : { |
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 -v | |
echo "Updating packages" | |
yum update -y | |
echo "Installing yum packages" | |
yum install -y rubygems git puppet3 | |
echo "Installing rubygems" | |
gem install r10k hiera-eyaml hiera-eyaml-kms |
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
--- | |
:backends: | |
- yaml | |
:yaml: | |
:datadir: "/root/init/datadir" | |
:hierarchy: | |
- custom | |
- "hosts/%{::aws_cloudformation_logical_id}" | |
- common |
OlderNewer