m/p/localregistry: init
Adds the localregistry package, which serves Bazel-built container
images via the Docker/OCI V2 registry API.
This will be used to serve test images instead of preseeding them.
Change-Id: I0c2ceb9a83f807c9c87ab03bc1141ca67cc64268
Reviewed-on: https://review.monogon.dev/c/monogon/+/1926
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/metropolis/pkg/localregistry/BUILD.bazel b/metropolis/pkg/localregistry/BUILD.bazel
new file mode 100644
index 0000000..636bc57
--- /dev/null
+++ b/metropolis/pkg/localregistry/BUILD.bazel
@@ -0,0 +1,16 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+ name = "localregistry",
+ srcs = ["localregistry.go"],
+ importpath = "source.monogon.dev/metropolis/pkg/localregistry",
+ visibility = ["//visibility:public"],
+ deps = [
+ "//metropolis/pkg/localregistry/spec",
+ "@com_github_docker_distribution//:distribution",
+ "@com_github_docker_distribution//manifest/schema2",
+ "@com_github_docker_distribution//reference",
+ "@com_github_opencontainers_go_digest//:go-digest",
+ "@org_golang_google_protobuf//encoding/prototext",
+ ],
+)