Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Last active August 7, 2017 21:55
Show Gist options
  • Save arturo-c/7af6ce4708fbd0a7dfc1fba1c852570a to your computer and use it in GitHub Desktop.
Save arturo-c/7af6ce4708fbd0a7dfc1fba1c852570a to your computer and use it in GitHub Desktop.
podTemplate(cloud: 'eo-test', label: 'deploy', containers: [
containerTemplate(name: 'docker', image: 'docker:17.03', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'curl', image: 'uzyexe/curl', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:3.10-1-alpine', args: '${computer.jnlpmac} ${computer.name}'),
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.3.1', envVars: [[key: 'KUBE_ENV', value: 'eo-test']], command: 'cat', ttyEnabled: true)],
volumes: [hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock')]) {
withEnv(["KUBE_ENV=${kubeEnv}"]) {
node('deploy') {
body()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment