From 0f3925f6c83d6035aa251691efd1650f447fa2c8 Mon Sep 17 00:00:00 2001 From: Ashley Davis Date: Fri, 24 Sep 2021 11:24:02 +0100 Subject: [PATCH] update base images + update instructions for checking reg isn't trivially installable with `go install`, and `go get` now has a deprecation warning. `crane` solves this issue! Signed-off-by: Ashley Davis --- build/images.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/images.bzl b/build/images.bzl index e068d9428..5fb2f5dc4 100644 --- a/build/images.bzl +++ b/build/images.bzl @@ -18,22 +18,22 @@ def define_base_images(): # Use 'static' distroless image for all builds by default. # To get the latest-amd64 digest for gcr.io/distroless/static, assuming # that $GOPATH/bin is in your $PATH, run: - # go get github.com/genuinetools/reg && reg digest gcr.io/distroless/static:latest-amd64 + # go install github.com/google/go-containerregistry/cmd/crane@latest && crane digest gcr.io/distroless/static:latest-amd64 container_pull( name = "static_base", registry = "gcr.io", repository = "distroless/static", - digest = "sha256:ef0dddb6c0595a9f4414922fe3f0f7d9ce067e1eb852961720135e60586febba" + digest = "sha256:aadea1b1f16af043a34491eec481d0132479382096ea34f608087b4bef3634be" ) # Use 'dynamic' distroless image for modified cert-manager deployments that # are dynamically linked. (This is not the default and you probably don't # need this.) # To get the latest-amd64 digest for gcr.io/distroless/base, # assuming that $GOPATH/bin is in your $PATH, run: - # go get github.com/genuinetools/reg && reg digest gcr.io/distroless/base:latest-amd64 + # go install github.com/google/go-containerregistry/cmd/crane@latest && crane digest gcr.io/distroless/base:latest-amd64 container_pull( name = "dynamic_base", registry = "gcr.io", repository = "distroless/base", - digest = "sha256:1d40fb1b82f00135635dd5864ec91a70dff306a1c81cb6761c0982144cd5351f" + digest = "sha256:ba7a315f86771332e76fa9c3d423ecfdbb8265879c6f1c264d6fff7d4fa460a4" )