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
def buildImage(registry, imageName, tagName) { | |
sh "docker build -t ${registry}/${imageName}:${tagName} ." | |
} | |
return this |
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
#!/usr/bin/env groovy | |
def runCmd(cmd) { | |
ProcessBuilder builder = new ProcessBuilder( cmd.split(' ') ) | |
builder.redirectErrorStream(true) | |
Process process = builder.start() | |
InputStream stdout = process.getInputStream () | |
BufferedReader reader = new BufferedReader (new InputStreamReader(stdout)) | |
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
version: '2' | |
services: | |
tomcat: | |
image: tomcat:7.0.72-jre8 | |
ports: | |
- 7070:8080 |
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
--- | |
kind: PersistentVolume | |
apiVersion: v1 | |
metadata: | |
name: pvjenkins | |
labels: | |
type: local | |
spec: | |
capacity: | |
storage: 3Gi |
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
apt-get update | |
apt-get install -y curl | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
curl -sSL https://get.docker.com/ | sh | |
apt-get install -y kubelet kubeadm kubectl kubernetes-cni |
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
alert('hello'); |
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
html body ul.actions-container li.action-item{ | |
color:yellow; | |
} |
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
webpackJsonp([1,3],[ | |
/* 0 */ | |
/***/ function(module, exports, __webpack_require__) { | |
/* WEBPACK VAR INJECTION */(function(process) {'use strict'; | |
var feedbackUrl = process.env.FEEDBACK_URL || 'https://hootch.test.netflix.net/submit'; | |
var gateHost = "/gate" || 'https://spinnaker-api-prestaging.mgmttest.netflix.net'; | |
var bakeryDetailUrl = "/bakery" || 'http://bakery.test.netflix.net/#/?region={{context.region}}&package={{context.package}}&detail=bake:{{context.status.resourceId}}'; |
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
#!/usr/bin/env bash | |
#install packa-wrappa | |
cd /usr/local/bin | |
wget https://gist.githubusercontent.com/moondev/5ea8fa608d1cd1d0006d4962061a4b66/raw/59db9706e27a132e1f7bbf31b0839a6bc5b7c120/packer | |
chmod +x packer | |
#install packer | |
cd /opt | |
wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip |
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
#!/usr/bin/env bash | |
#This shell script goes in /usr/local/bin/packer | |
# | |
#The real packer binary is at /opt/packer | |
# | |
#The script looks for region in the params and then adds that to the end of aws-ebs.json and calls it with the real packer /opt/packer | |
# | |
#So Rosco goes: |