Skip to content

Instantly share code, notes, and snippets.

Jason Hall ImJasonH

Block or report user

Report or block ImJasonH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ImJasonH / git.go
Created Jul 29, 2019
hacking on trying to write git objects (
View git.go
package main
import (

Migrating from Knative Build

This doc describes a process for users who are familiar with Knative Build and BuildTemplate resources to migrate to Tekton TaskRuns and Tasks, respectively.

Tekton's resources are heavily influenced by Knative's Build-related resources, with some additional features that enable them to be chained together inside a Pipeline, and provide additional flexibility and reusability.

| Knative | Tekton |


Much of this proposal is cribbed from proposals @ahmetb has previously made, ideas are not my own.

Expected Behavior

Users have an easy cruft-free way to express a multi-statement script in the body of a Task step, without having to understand advanced topics about containers, like what an entrypoint or a command is.

Users should only need to have passing familiarity with a shell environment to be successful using Tekton.

Actual Behavior

View main.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
View main.go
package main
import "fmt"
func main() {
fmt.Println("goodbye cruel world")
View gist:c2585fa0ce74fbb4ad22e53ba9bf0c84
$ ko publish
2019/02/01 11:17:40 Using base for
2019/02/01 11:17:41 Publishing
2019/02/01 11:17:42 existing blob: sha256:4003b5b92ca98a8926d9112839f3f17e69f4ec4f995abb188a3ce3ccf93cd6d9
2019/02/01 11:17:42 existing blob: sha256:8ff7789f00584c4605cff901525c8acd878ee103d32351ece7d7c8e5eac5d8b4
2019/02/01 11:17:42 existing blob: sha256:bb2297ebc4b391f2fd41c48df5731cdd4dc542f6eb6113436b81c886b139a048
2019/02/01 11:17:44 pushed blob sha256:24edc85499204884bb749902cbef736c1e53621c534c69fbb80850d55b970ac5
2019/02/01 11:17:45 pushed blob sha256:8ec83c2afff1e8595d45bd906ae839f7d7b525fd4c1442a4705747755b2a5fd6
2019/02/01 11:17:48 digest: sha256:121f9c7a23a6435a66a4a27be64a1b9287550b68cc8e52564de81b8f9ff3c187 size: 914
2019/02/01 11:17:48 Published
View cloudbuild.yaml
- name:
args: ['version']
- name:
args: ['pull', 'r2d4/mocker:latest']
- name:
args: ['pull', 'ubuntu:16.04']
- name:
View main.go
package main
import "fmt"
func main() { fmt.Println("hi again") }
while read l; do
echo Removing $l
docker image rm $l
done < images.txt
View Dockerfile
FROM golang:latest
RUN mkdir /app
ADD . /app/
RUN go build -o helloworld .
CMD ["/app/helloworld"]
You can’t perform that action at this time.