This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gauth() { | |
gcloud auth login && gcloud auth application-default login | |
} | |
# Diff two image filesystems | |
function cdiff-fs() { | |
diff \ | |
<(crane export $1 - --platform ${3:-linux/amd64} | tar -tvf - | sort) \ | |
<(crane export $2 - --platform ${3:-linux/amd64} | tar -tvf - | sort) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Diff two image filesystems | |
function cdiff-fs() { | |
diff \ | |
<(crane export $1 - --platform ${3:-linux/amd64} | tar -tvf - | sort) \ | |
<(crane export $2 - --platform ${3:-linux/amd64} | tar -tvf - | sort) | |
} | |
# Diff two image configs | |
function cdiff-cfg() { | |
diff \ | |
<(crane config $1 --platform ${3:-linux/amd64} | jq) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ crane export alpine - | tar -Oxf - etc/os-release | |
NAME="Alpine Linux" | |
ID=alpine | |
VERSION_ID=3.16.1 | |
PRETTY_NAME="Alpine Linux v3.16" | |
HOME_URL="https://alpinelinux.org/" | |
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues" | |
$ crane export ghcr.io/distroless/alpine-base - | tar -Oxf - etc/os-release | |
ID=alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/google/go-containerregistry/pkg/authn" | |
"github.com/google/go-containerregistry/pkg/crane" | |
"github.com/google/go-containerregistry/pkg/v1/google" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff ../cosign/cmd/cosign/cli/fulcio/fulcioroots/fulcioroots.go pkg/fulcioroots/fulcioroots.go | |
2c2 | |
< // Copyright 2021 The Sigstore Authors. | |
--- | |
> // Copyright 2022 The Sigstore Authors. | |
24d23 | |
< "os" | |
27d25 | |
< "github.com/sigstore/cosign/pkg/cosign/tuf" | |
28a27 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package glob_test | |
import ( | |
"fmt" | |
"regexp" | |
"strings" | |
"testing" | |
"github.com/google/go-containerregistry/pkg/name" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tknviz | |
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
GOOS=linux go build ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sget-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/google/ko | |
$ cd ko | |
$ go build ./ | |
$ go version -m ko | |
ko: go1.18 | |
path github.com/google/ko | |
mod github.com/google/ko (devel) | |
dep cloud.google.com/go v0.99.0 h1:y/cM2iqGgGi5D5DQZl6D9STN/3dR/Vx5Mp8s752oJTY= | |
dep github.com/Azure/azure-sdk-for-go v55.8.0+incompatible h1:EuccMPzxu67cIE95/mrtwQivLv7ETmURi5IUgLNVug8= | |
dep github.com/Azure/go-autorest/autorest v0.11.19 h1:7/IqD2fEYVha1EPeaiytVKhzmPV223pfkRIQUGOK2IE= |