Skip to content

Instantly share code, notes, and snippets.

@mborsz
Created April 27, 2023 13:41
Show Gist options
  • Save mborsz/4b17a5e3664a17315bd627c5525f6fae to your computer and use it in GitHub Desktop.
Save mborsz/4b17a5e3664a17315bd627c5525f6fae to your computer and use it in GitHub Desktop.
➜ watch-list git:(pr/p0lyn0mial/2256) ✗ make push
docker build --pull -t gcr.io/k8s-staging-perf-tests/watch-list:v0.0.1 .
Sending build context to Docker daemon 58.88kB
Step 1/8 : FROM golang:1.20 AS build-env
1.20: Pulling from library/golang
b0248cf3e63c: Pull complete
127e97b4daf7: Pull complete
0336c50c9f69: Pull complete
1b89f3c7f7da: Pull complete
079116d1299c: Pull complete
28b9642b2654: Pull complete
94ffa0dd0d53: Pull complete
Digest: sha256:403f48633fb5ebd49f9a2b6ad6719f912df23dae44974a0c9445be331e72ff5e
Status: Downloaded newer image for golang:1.20
---> 4237fa9a9df4
Step 2/8 : ARG gopkg=k8s.io/perf-tests/util-images/watch-list
---> Running in 7ea231f44bd3
Removing intermediate container 7ea231f44bd3
---> ed55485b598a
Step 3/8 : ADD [".", "/go/src/$gopkg"]
---> 47de79f61561
Step 4/8 : WORKDIR /go/src/$gopkg
---> Running in bf613c2bf483
Removing intermediate container bf613c2bf483
---> 29be92fad5c7
Step 5/8 : RUN CGO_ENABLED=0 go build -o /go/bin/watch-list main.go
---> Running in 99044c4d0b3f
go: downloading k8s.io/client-go v0.27.0
go: downloading k8s.io/apimachinery v0.27.0
go: downloading k8s.io/klog/v2 v2.90.1
go: downloading github.com/go-logr/logr v1.2.3
go: downloading k8s.io/utils v0.0.0-20230209194617-a36077c30491
go: downloading github.com/google/gofuzz v1.1.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/google/go-cmp v0.5.9
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading k8s.io/api v0.27.0
go: downloading github.com/golang/protobuf v1.5.3
go: downloading golang.org/x/net v0.8.0
go: downloading github.com/imdario/mergo v0.3.7
go: downloading github.com/google/gnostic v0.5.7-v3refs
go: downloading golang.org/x/term v0.6.0
go: downloading sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd
go: downloading github.com/spf13/pflag v1.0.5
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.2.3
go: downloading k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b
go: downloading golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/sys v0.6.0
go: downloading google.golang.org/protobuf v1.28.1
go: downloading github.com/json-iterator/go v1.1.12
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/go-openapi/jsonreference v0.20.1
go: downloading github.com/go-openapi/swag v0.22.3
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading golang.org/x/text v0.8.0
go: downloading github.com/emicklei/go-restful/v3 v3.9.0
go: downloading github.com/go-openapi/jsonpointer v0.19.6
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/josharian/intern v1.0.0
Removing intermediate container 99044c4d0b3f
---> b82cb17ab1ce
Step 6/8 : FROM gcr.io/distroless/static
latest: Pulling from distroless/static
10f855b03c8a: Pull complete
fe5ca62666f0: Pull complete
fff4e558ad3a: Pull complete
fcb6f6d2c998: Pull complete
e8c73c638ae9: Pull complete
1e3d9b7d1452: Pull complete
4aa0ea1413d3: Pull complete
7c881f9ab25e: Pull complete
5627a970d25e: Pull complete
Digest: sha256:a01d47d4036cae5a67a9619e3d06fa14a6811a2247b4da72b4233ece4efebd57
Status: Downloaded newer image for gcr.io/distroless/static:latest
---> 3b75ebc491ed
Step 7/8 : COPY --from=build-env /go/bin/watch-list /usr/bin/
---> 8e74dd302c74
Step 8/8 : ENTRYPOINT ["watch-list"]
---> Running in 3594f61b6ffd
Removing intermediate container 3594f61b6ffd
---> a5c43f42a1c7
Successfully built a5c43f42a1c7
Successfully tagged gcr.io/k8s-staging-perf-tests/watch-list:v0.0.1
docker tag gcr.io/k8s-staging-perf-tests/watch-list:v0.0.1 gcr.io/k8s-staging-perf-tests/watch-list:latest
Built gcr.io/k8s-staging-perf-tests/watch-list:v0.0.1 and tagged with latest
docker push gcr.io/k8s-staging-perf-tests/watch-list:v0.0.1
The push refers to repository [gcr.io/k8s-staging-perf-tests/watch-list]
34dfc34ebbbd: Pushed
4cb10dd2545b: Layer already exists
d2d7ec0f6756: Layer already exists
1a73b54f556b: Layer already exists
e624a5370eca: Layer already exists
d52f02c6501c: Layer already exists
ff5700ec5418: Layer already exists
399826b51fcf: Layer already exists
6fbdf253bbc2: Layer already exists
d0157aa0c95a: Layer already exists
v0.0.1: digest: sha256:b9daf7d7591d59911c3097bfe710d391fa32dcc09256b5985c81a3f0edb00a1d size: 2403
docker push gcr.io/k8s-staging-perf-tests/watch-list:latest
The push refers to repository [gcr.io/k8s-staging-perf-tests/watch-list]
34dfc34ebbbd: Layer already exists
4cb10dd2545b: Layer already exists
d2d7ec0f6756: Layer already exists
1a73b54f556b: Layer already exists
e624a5370eca: Layer already exists
d52f02c6501c: Layer already exists
ff5700ec5418: Layer already exists
399826b51fcf: Layer already exists
6fbdf253bbc2: Layer already exists
d0157aa0c95a: Layer already exists
latest: digest: sha256:b9daf7d7591d59911c3097bfe710d391fa32dcc09256b5985c81a3f0edb00a1d size: 2403
Pushed gcr.io/k8s-staging-perf-tests/watch-list with :latest and :v0.0.1 tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment