From 94f1c7d807d5392b870484b7112b4db6e0077813 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 1 May 2024 13:02:40 +0200 Subject: Build images with bazel --- MODULE.bazel | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 MODULE.bazel (limited to 'MODULE.bazel') diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 0000000..77f4b3a --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,26 @@ +bazel_dep(name = "rules_go", version = "0.47.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.36.0", repo_name = "bazel_gazelle") +bazel_dep(name = "rules_oci", version = "1.7.5") +bazel_dep(name = "rules_pkg", version = "0.9.1") + +# This is needed so that rules_oci supports arm64 +# See: https://github.com/bazel-contrib/rules_oci/issues/253 +git_override( + module_name = "rules_oci", + commit = "7700f626ad3439a51e9735e0fb1c2f69734e8a28", + remote = "https://github.com/archen/rules_oci.git", +) + +oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") + +oci.pull( + name = "distroless_base", + digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86", + image = "gcr.io/distroless/base", + platforms = [ + "linux/amd64", + "linux/arm64", + ], +) + +use_repo(oci, "distroless_base") -- cgit 1.4.1