| workspace( |
| name = "hscloud", |
| ) |
| |
| load("@bazel_skylib//lib:versions.bzl", "versions") |
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
| |
| versions.check(minimum_bazel_version = "7.4.1") |
| |
| # OCI base images |
| load("@rules_oci//oci:pull.bzl", "oci_pull") |
| |
| oci_pull( |
| name = "prodimage-bionic-oci", |
| digest = "sha256:1cd1f84169b8e1414a5d511b42909f2d540831c67b6799ae9af8cd6a80d75b5f", |
| registry = "registry.hswaw.net", |
| repository = "q3k/prodimage", |
| tag = "20190822-1227", |
| ) |
| |
| # NOTE: A single oci_pull with `platforms` set *should* work, but I can't get it to work -radex |
| oci_pull( |
| name = "prodimage-noble-oci", |
| digest = "sha256:e3d24b3046509d1b6f8945ae7584c38a83bfc35302bb53d0ad02fbb9e1ec3f51", |
| registry = "registry.hswaw.net", |
| repository = "radex/prodimage-noble", |
| tag = "20250205221757", |
| ) |
| |
| oci_pull( |
| name = "prodimage-noble-oci_arm64", |
| digest = "sha256:9f14c2a69d8109b06eb6e20865a0b1c0348c7afcef7cb4c5002c1c0941c091b8", |
| registry = "registry.hswaw.net", |
| repository = "radex/prodimage-noble", |
| tag = "20250205221757", |
| ) |
| |
| oci_pull( |
| name = "gerrit-3.7.5", |
| digest = "sha256:3705f3cb365bf53a8e310dd7e09c8fb44a073e1266dc0e713b6fdc04c91ab9f2", |
| registry = "index.docker.io", |
| repository = "gerritcodereview/gerrit", |
| tag = "3.7.5-ubuntu20", |
| ) |
| |
| # For devtools/gerrit/gerrit-oauth-provider and gerrit OWNERS plugin |
| |
| git_repository( |
| name = "com_googlesource_gerrit_bazlets", |
| # change 389378, https://gerrit-review.googlesource.com/c/bazlets/+/389378 |
| commit = "0c120e55519b103477b6e0b0ce9130cd6f19abff", |
| remote = "https://gerrit.googlesource.com/bazlets", |
| shallow_since = "1697215193 +0200", |
| ) |
| |
| # Force newer version of Gerrit plugin API. |
| load("@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", "gerrit_api") |
| |
| gerrit_api( |
| acceptance_framework_sha1 = "aa51456eda49f928217de4bd46e4af8fbea8c4f1", |
| plugin_api_sha1 = "1ea41f95da74045c2cdb30d359041a79b61e72ff", |
| version = "3.7.5", |
| ) |
| |
| load("//devtools/gerrit/gerrit-oauth-provider:external_plugin_deps.bzl", gerrit_oauth_deps = "external_plugin_deps") |
| |
| gerrit_oauth_deps(omit_commons_codec = False) |
| |
| # Gerrit OWNERS plugins external repositories |
| |
| git_repository( |
| name = "com_googlesource_gerrit_plugin_owners", |
| commit = "6db2d3f048f56fa49469d315b716787d21f8393f", |
| patch_args = ["-p1"], |
| patches = [ |
| "//third_party:gerrit_plugins_owner.patch", |
| ], |
| remote = "https://gerrit.googlesource.com/plugins/owners/", |
| shallow_since = "1695117186 +0200", |
| ) |
| |
| load("@com_googlesource_gerrit_plugin_owners//:external_plugin_deps_standalone.bzl", gerrit_owners_deps = "external_plugin_deps_standalone") |
| |
| gerrit_owners_deps() |
| |
| # //hswaw/site deps. |
| load("//hswaw/site:deps.bzl", "hswaw_site_deps") |
| |
| hswaw_site_deps() |
| |
| # noVNC, used by //dc/drackvm. |
| http_archive( |
| name = "com_github_novnc_novnc", |
| build_file_content = """ |
| filegroup( |
| name = "distfiles", |
| srcs = [ |
| "vnc.html", |
| ] + glob([ |
| "app/**", |
| "core/**", |
| "vendor/**", |
| ]), |
| visibility = ["//visibility:public"], |
| ) |
| """, |
| sha256 = "2c972cca34376dfd2a54939e7e571e466511bf592d03e838440b3c8868441eaf", |
| strip_prefix = "noVNC-1.3.0-beta", |
| urls = ["https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0-beta.tar.gz"], |
| ) |
| |
| # temporarily use upstream binary, see //cluster/tools/BUILD |
| http_file( |
| name = "calicoctl_3_15", |
| downloaded_file_path = "calicoctl", |
| executable = True, |
| sha256 = "f49e9e8d25108f7f22d5a51c756b2fe40cbe36347ad297e31a767376172f2845", |
| urls = ["https://github.com/projectcalico/calicoctl/releases/download/v3.15.5/calicoctl"], |
| ) |
| |
| # viz.js 2.x used by //dc/topo |
| load("//third_party:vizjs.bzl", "vizjs_repositories") |
| |
| vizjs_repositories() |
| |
| # buildifier and friends |
| http_archive( |
| name = "com_github_bazelbuild_buildtools", |
| sha256 = "ae34c344514e08c23e90da0e2d6cb700fcd28e80c02e23e4d5715dddcb42f7b3", |
| strip_prefix = "buildtools-4.2.2", |
| urls = [ |
| "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.2.tar.gz", |
| ], |
| ) |