Skip to content

Instantly share code, notes, and snippets.

@jer
Created June 20, 2016 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jer/430312cfcafddb55fe995a62f354d8f5 to your computer and use it in GitHub Desktop.
Save jer/430312cfcafddb55fe995a62f354d8f5 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
name: sdrunner
spec:
template:
metadata:
name: sdrunner
spec:
restartPolicy: Never
containers:
- name: launcher
image: jwuenschel/sdlauncher
volumeMounts:
- mountPath: /opt/screwdriver
name: screwdriver
- name: builder
image: node:4
command: [ "/bin/sh", "-c", "sleep 5 && /opt/screwdriver/bin/build.sh foo baz" ]
args: [ "foo", "bar" ]
volumeMounts:
- mountPath: /opt/screwdriver
name: screwdriver
volumes:
- name: screwdriver
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment