mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 05:06:38 +10:00
40 lines
1.8 KiB
Python
40 lines
1.8 KiB
Python
# Copyright 2020 The cert-manager Authors.
|
||
#
|
||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
# you may not use this file except in compliance with the License.
|
||
# You may obtain a copy of the License at
|
||
#
|
||
# http://www.apache.org/licenses/LICENSE-2.0
|
||
#
|
||
# Unless required by applicable law or agreed to in writing, software
|
||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
# See the License for the specific language governing permissions and
|
||
# limitations under the License.
|
||
|
||
load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
|
||
|
||
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 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:49f33fac9328ac595cb74bd02e6a186414191c969de0d8be34e6307c185acb8e"
|
||
)
|
||
# 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 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:eaddb8ca70848a43fab351226d9549a571f68d9427c53356114fedd3711b5d73"
|
||
)
|