diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-01 13:02:40 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-01 16:25:18 +0200 |
commit | 94f1c7d807d5392b870484b7112b4db6e0077813 (patch) | |
tree | f9649777df0f1e4fc1a5216cdeec6009ac945629 /MODULE.bazel | |
parent | Create dummy rest-api service (diff) | |
download | fs-tracer-backend-94f1c7d807d5392b870484b7112b4db6e0077813.tar.gz fs-tracer-backend-94f1c7d807d5392b870484b7112b4db6e0077813.tar.bz2 fs-tracer-backend-94f1c7d807d5392b870484b7112b4db6e0077813.zip |
Build images with bazel
Diffstat (limited to 'MODULE.bazel')
-rw-r--r-- | MODULE.bazel | 26 |
1 files changed, 26 insertions, 0 deletions
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") |