Skip to content

Instantly share code, notes, and snippets.

@drnic
Last active November 11, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drnic/fb1d0030cc69fe4e0e7dd4651a87c3d8 to your computer and use it in GitHub Desktop.
Save drnic/fb1d0030cc69fe4e0e7dd4651a87c3d8 to your computer and use it in GitHub Desktop.
Comparison of two Knative Builds - "build-default.yml" is a no-template build with explicit steps; "buildpack.yml" uses the pre-installed https://raw.githubusercontent.com/knative/build-templates/master/buildpack/buildpack.yaml build-template
apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
creationTimestamp: 2018-11-11T23:25:45Z
generateName: simple-app-
generation: 1
name: simple-app-7s8pf
namespace: default
resourceVersion: "14435"
selfLink: /apis/build.knative.dev/v1alpha1/namespaces/default/builds/simple-app-7s8pf
uid: 1d852790-e609-11e8-8c37-42010a8a00af
spec:
generation: 1
serviceAccountName: build
source:
custom:
args:
- -c
- touch /tmp/SOURCE_UPLOAD_DONE; while [ -f /tmp/SOURCE_UPLOAD_DONE ]; do sleep
1; done
command:
- /bin/bash
image: ubuntu:xenial
name: ""
resources: {}
steps:
- args:
- --dockerfile=/workspace/Dockerfile
- --destination=index.docker.io/drnic/knative-simple-app
image: gcr.io/kaniko-project/executor
name: build-and-push
resources: {}
status:
builder: Cluster
cluster:
namespace: default
podName: simple-app-7s8pf-5jmhv
completionTime: 2018-11-11T23:29:28Z
conditions:
- state: Succeeded
status: "True"
startTime: 2018-11-11T23:25:46Z
stepStates:
- terminated:
containerID: docker://e8469ea2482d304d05e010162c85da7570ed1d4b53a4a77d36e8de6266e7df15
exitCode: 0
finishedAt: 2018-11-11T23:27:09Z
reason: Completed
startedAt: 2018-11-11T23:27:09Z
- terminated:
containerID: docker://ddc93c7d36d06c020d032094b6a945180deab58e42a1da6ed035b0bc2fade72b
exitCode: 0
finishedAt: 2018-11-11T23:27:25Z
reason: Completed
startedAt: 2018-11-11T23:27:17Z
- terminated:
containerID: docker://c6051e95b2eaf65d74011756ef792553b86f401d3517714b59172f372e17ca48
exitCode: 0
finishedAt: 2018-11-11T23:29:26Z
reason: Completed
startedAt: 2018-11-11T23:27:28Z
apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
creationTimestamp: 2018-11-11T23:44:57Z
generateName: simple-app-
generation: 1
name: simple-app-hq2qb
namespace: default
resourceVersion: "35351"
selfLink: /apis/build.knative.dev/v1alpha1/namespaces/default/builds/simple-app-hq2qb
uid: cc2ee5e3-e60b-11e8-8c37-42010a8a00af
spec:
generation: 1
serviceAccountName: build
source:
custom:
args:
- -c
- touch /tmp/SOURCE_UPLOAD_DONE; while [ -f /tmp/SOURCE_UPLOAD_DONE ]; do sleep
1; done
command:
- /bin/bash
image: ubuntu:xenial
name: ""
resources: {}
template:
arguments:
- name: IMAGE
value: index.docker.io/drnic/knative-simple-app
env:
- name: GOPACKAGENAME
value: main
name: buildpack
status:
builder: Cluster
cluster:
namespace: default
podName: simple-app-hq2qb-6zzdp
completionTime: 2018-11-11T23:46:23Z
conditions:
- state: Succeeded
status: "True"
startTime: 2018-11-11T23:44:57Z
stepStates:
- terminated:
containerID: docker://5607dcb59eb58d2c9adb6fac5754064f883c910229e72725b3ada52ea85b8515
exitCode: 0
finishedAt: 2018-11-11T23:44:59Z
reason: Completed
startedAt: 2018-11-11T23:44:59Z
- terminated:
containerID: docker://07ad27681b0d8a38a4cb9ba0bb27221f6eb840608dd1bc5d93a4a2951acc6161
exitCode: 0
finishedAt: 2018-11-11T23:45:06Z
reason: Completed
startedAt: 2018-11-11T23:45:00Z
- terminated:
containerID: docker://ccc8a964212e4354e8a5c7799902220788337943e7ee44357a19febacdcce947
exitCode: 0
finishedAt: 2018-11-11T23:46:11Z
reason: Completed
startedAt: 2018-11-11T23:45:41Z
- terminated:
containerID: docker://2c908adbcaa04c73c24d92fae936257b3aa295b23ac5d0359a6f05841258f50c
exitCode: 0
finishedAt: 2018-11-11T23:46:21Z
reason: Completed
startedAt: 2018-11-11T23:46:17Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment