Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am darinpope on github.
  • I am darinpope (https://keybase.io/darinpope) on keybase.
  • I have a public key whose fingerprint is 331F 1E52 D97C E90C E281 E637 B129 1D61 0F21 81C6

To claim this, I am signing this object:

This is a Dockerfile and docker-compose.yml to run a custom CloudBees Core Traditional Client Master that has the /var/jenkins_support as an exposed volume

gcloud container clusters create dpope-gke --region us-east1 --machine-type n1-standard-2 --enable-autoscaling --num-nodes 1 --max-nodes 3 --min-nodes 1
kubectl create namespace cloudbees-core
kubectl create namespace ingress-nginx
kubectl config set-context $(kubectl config current-context) --namespace=cloudbees-core
helm repo add cloudbees https://charts.cloudbees.com/public/cloudbees
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update

Gist for https://www.youtube.com/watch?v=UGQ38kFTM3w

Operations Center sysconfig values

  • JENKINS_PORT="8080"
  • JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -Duser.timezone=America/New_York -Djava.io.tmpdir=/var/cache/cloudbees-core-oc/tmp/ -Dcom.cloudbees.jenkins.ha=false -Dcb.BeekeeperProp.noFullUpgrade=true -Dhudson.TcpSlaveAgentListener.hostName=ip-10-0-101-185.ec2.internal -Dhudson.TcpSlaveAgentListener.port=50000"
  • JENKINS_ARGS="--pluginroot=/var/cache/cloudbees-core-oc/plugins"

Client Controller sysconfig values

Gist to support https://www.youtube.com/watch?v=2uYL4az1BVU

firewalld commands

  • firewall-cmd --zone=public --add-service=https
  • firewall-cmd --add-forward-port=port=443:proto=tcp:toport=8443
  • firewall-cmd --runtime-to-permanent
  • firewall-cmd --reload
  • firewall-cmd --list-all

Gist for https://www.youtube.com/watch?v=T5BHpvC5PL8

Steps from the video

  • gh repo create jenkins-example-cucumber --gitignore Maven --public --clone
  • mvn archetype:generate -DgroupId=com.planetpope.cucumber -DartifactId=jenkins-example-cucumber -DarchetypeGroupId=io.cucumber -DarchetypeArtifactId=cucumber-archetype -DarchetypeVersion=7.2.3 -DinteractiveMode=false
  • cd jenkins-example-cucumber
  • mvn -N io.takari:maven:wrapper -Dmaven=3.8.4
  • ./mvnw clean test