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
View Dockerfile
FROM ubuntu
ADD doll.sh /
ENTRYPOINT ["/doll.sh"]
View whiteouter.go
package main
import (
"archive/tar"
"bytes"
"flag"
"log"
"github.com/google/go-containerregistry/pkg/name"
"github.com/google/go-containerregistry/pkg/v1/mutate"
@ImJasonH
ImJasonH / git.go
Created Jul 29, 2019
hacking on trying to write git objects (https://github.com/ImJasonH/ideas/issues/77)
View git.go
package main
import (
"bytes"
"compress/zlib"
"crypto/sha1"
"fmt"
"io"
"log"
"os"
View migrating-knative-build.md

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 |

View scriptmode.md

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 github.com/imjasonh/under_score
2019/02/01 11:17:40 Using base gcr.io/distroless/base:latest for github.com/imjasonh/under_score
2019/02/01 11:17:41 Publishing gcr.io/jasonhall-kube/under_score-df0a5e55c5f80b9f3f4f9c8cf4d98879:latest
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 gcr.io/jasonhall-kube/under_score-df0a5e55c5f80b9f3f4f9c8cf4d98879:latest: digest: sha256:121f9c7a23a6435a66a4a27be64a1b9287550b68cc8e52564de81b8f9ff3c187 size: 914
2019/02/01 11:17:48 Published gcr.io/jasonhall-kube/under_score
View cloudbuild.yaml
steps:
- name: gcr.io/cloud-builders/docker
args: ['version']
- name: gcr.io/cloud-builders/docker
args: ['pull', 'r2d4/mocker:latest']
- name: gcr.io/cloud-builders/docker
args: ['pull', 'ubuntu:16.04']
- name: gcr.io/cloud-builders/wget
View main.go
package main
import "fmt"
func main() { fmt.Println("hi again") }
You can’t perform that action at this time.