2021-01-04 09:35:31 +01:00
|
|
|
workspace(
|
|
|
|
name = "hyperboria",
|
|
|
|
managed_directories = {"@npm": ["rules/nodejs/node_modules"]},
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
2021-03-29 12:39:23 +02:00
|
|
|
sha256 = "ebdf850bfef28d923a2cc67ddca86355a449b5e4f38b0a70e584dc24e5984aa6",
|
|
|
|
strip_prefix = "bazel-skylib-f80bc733d4b9f83d427ce3442be2e07427b2cc8d",
|
2021-01-04 09:35:31 +01:00
|
|
|
urls = [
|
2021-03-29 12:39:23 +02:00
|
|
|
"https://github.com/bazelbuild/bazel-skylib/archive/f80bc733d4b9f83d427ce3442be2e07427b2cc8d.tar.gz",
|
2021-01-04 09:35:31 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-04-09 14:10:16 +02:00
|
|
|
# ToDo: wait for https://github.com/bazelbuild/rules_docker/pull/1638
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_docker",
|
2022-03-28 16:39:36 +02:00
|
|
|
sha256 = "c2a283bea1ea30a3ceb9e5388a4c8c8eef68a815ac86f1d381f9d35cdee57f1b",
|
|
|
|
strip_prefix = "rules_docker-46d29e34399a992087c857b13d8dcb8ec80dfd85",
|
2021-04-09 14:10:16 +02:00
|
|
|
urls = [
|
2022-03-28 16:39:36 +02:00
|
|
|
"https://github.com/the-superpirate/rules_docker/archive/46d29e34399a992087c857b13d8dcb8ec80dfd85.tar.gz",
|
2021-04-09 14:10:16 +02:00
|
|
|
],
|
|
|
|
)
|
2021-01-04 09:35:31 +01:00
|
|
|
|
|
|
|
http_archive(
|
2021-03-29 12:39:23 +02:00
|
|
|
name = "build_bazel_rules_nodejs",
|
2022-03-28 16:39:36 +02:00
|
|
|
sha256 = "f7037c8e295fdc921f714962aee7c496110052511e2b14076bd8e2d46bc9819c",
|
|
|
|
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.5/rules_nodejs-4.4.5.tar.gz"],
|
2021-01-04 09:35:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_k8s",
|
2022-03-28 16:39:36 +02:00
|
|
|
sha256 = "a08850199d6900328ef899906717fb1dfcc6cde62701c63725748b2e6ca1d5d9",
|
|
|
|
strip_prefix = "rules_k8s-d05cbea5c56738ef02c667c10951294928a1d64a",
|
2021-01-04 09:35:31 +01:00
|
|
|
urls = [
|
2022-03-28 16:39:36 +02:00
|
|
|
"https://github.com/bazelbuild/rules_k8s/archive/d05cbea5c56738ef02c667c10951294928a1d64a.tar.gz",
|
2021-01-04 09:35:31 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
2021-03-29 12:39:23 +02:00
|
|
|
name = "rules_rust",
|
2022-03-28 16:39:36 +02:00
|
|
|
sha256 = "30c1b40d77a262e3f7dba6e4267fe4695b5eb1e68debc6aa06c3e09d429ae19a",
|
|
|
|
strip_prefix = "rules_rust-0.1.0",
|
2021-01-04 09:35:31 +01:00
|
|
|
urls = [
|
2022-03-28 16:39:36 +02:00
|
|
|
"https://github.com/bazelbuild/rules_rust/archive/0.1.0.tar.gz",
|
2021-01-04 09:35:31 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "rules_jvm_external",
|
2021-03-29 12:39:23 +02:00
|
|
|
sha256 = "2a547d8d5e99703de8de54b6188ff0ed470b3bfc88e346972d1c8865e2688391",
|
2021-01-04 09:35:31 +01:00
|
|
|
strip_prefix = "rules_jvm_external-3.3",
|
|
|
|
urls = [
|
2021-03-29 12:39:23 +02:00
|
|
|
"https://github.com/bazelbuild/rules_jvm_external/archive/3.3.tar.gz",
|
2021-01-04 09:35:31 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "rules_pkg",
|
2021-03-29 12:39:23 +02:00
|
|
|
sha256 = "b9a5bdfe4f8ce0dedf9387eadd9f4844c383118b3f4cc27b586626b7998141c3",
|
2021-01-04 09:35:31 +01:00
|
|
|
strip_prefix = "rules_pkg-4b0b9f4679484f107f750a60190ff5ec6b164a5f/pkg",
|
|
|
|
urls = [
|
2021-03-29 12:39:23 +02:00
|
|
|
"https://github.com/bazelbuild/rules_pkg/archive/4b0b9f4679484f107f750a60190ff5ec6b164a5f.tar.gz",
|
2021-01-04 09:35:31 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
2022-03-28 16:39:36 +02:00
|
|
|
name = "rules_proto_grpc",
|
|
|
|
sha256 = "507e38c8d95c7efa4f3b1c0595a8e8f139c885cb41a76cab7e20e4e67ae87731",
|
|
|
|
strip_prefix = "rules_proto_grpc-4.1.1",
|
|
|
|
urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.1.1.tar.gz"],
|
2021-01-04 09:35:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "rules_python",
|
2022-03-28 16:39:36 +02:00
|
|
|
sha256 = "15f84594af9da06750ceb878abbf129241421e3abbd6e36893041188db67f2fb",
|
|
|
|
strip_prefix = "rules_python-0.7.0",
|
|
|
|
urls = ["https://github.com/bazelbuild/rules_python/archive/0.7.0.tar.gz"],
|
2021-01-04 09:35:31 +01:00
|
|
|
)
|
|
|
|
|
2021-04-11 16:39:25 +02:00
|
|
|
# Images Install
|
|
|
|
|
|
|
|
load("//images:install.bzl", "images_install")
|
|
|
|
|
|
|
|
images_install()
|
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
# Go
|
|
|
|
|
|
|
|
load("//rules/go:setup.bzl", "go_setup")
|
|
|
|
|
|
|
|
go_setup()
|
|
|
|
|
|
|
|
load("//rules/go:install.bzl", "go_install")
|
|
|
|
|
|
|
|
go_install()
|
|
|
|
|
2021-04-11 16:39:25 +02:00
|
|
|
# Python
|
|
|
|
register_toolchains("//rules/python:py_toolchain")
|
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
load("@rules_python//python:pip.bzl", "pip_parse")
|
2021-04-11 16:39:25 +02:00
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
pip_parse(
|
2021-04-11 16:39:25 +02:00
|
|
|
name = "pip_modules",
|
2022-03-28 16:39:36 +02:00
|
|
|
requirements_lock = "//rules/python:requirements-lock.txt",
|
2021-04-11 16:39:25 +02:00
|
|
|
)
|
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
load("@pip_modules//:requirements.bzl", "install_deps")
|
2021-04-23 17:23:02 +02:00
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
install_deps()
|
|
|
|
|
|
|
|
# Proto / gRPC
|
2021-04-23 17:23:02 +02:00
|
|
|
|
|
|
|
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_repos", "rules_proto_grpc_toolchains")
|
|
|
|
|
|
|
|
rules_proto_grpc_toolchains()
|
|
|
|
|
|
|
|
rules_proto_grpc_repos()
|
|
|
|
|
|
|
|
load("@rules_proto_grpc//js:repositories.bzl", "js_repos")
|
|
|
|
|
|
|
|
js_repos()
|
|
|
|
|
|
|
|
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
|
|
|
|
|
|
|
|
grpc_deps()
|
|
|
|
|
|
|
|
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
|
|
|
|
|
|
|
|
grpc_extra_deps()
|
|
|
|
|
2021-01-04 09:35:31 +01:00
|
|
|
# Java
|
|
|
|
|
|
|
|
load("//rules/java:artifacts.bzl", "maven_fetch_remote_artifacts")
|
|
|
|
|
|
|
|
maven_fetch_remote_artifacts()
|
|
|
|
|
|
|
|
# Rust
|
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
|
2021-01-04 09:35:31 +01:00
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
rust_repositories(
|
|
|
|
edition = "2021",
|
|
|
|
version = "1.59.0",
|
2021-01-04 09:35:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
load("//rules/rust:crates.bzl", "raze_fetch_remote_crates")
|
|
|
|
|
|
|
|
raze_fetch_remote_crates()
|
|
|
|
|
|
|
|
# NodeJS
|
2021-01-29 09:18:22 +01:00
|
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
|
|
|
|
|
|
|
|
node_repositories(
|
|
|
|
package_json = ["//rules/nodejs:package.json"],
|
|
|
|
preserve_symlinks = True,
|
|
|
|
)
|
2021-01-04 09:35:31 +01:00
|
|
|
|
|
|
|
yarn_install(
|
|
|
|
name = "npm",
|
|
|
|
package_json = "//rules/nodejs:package.json",
|
|
|
|
symlink_node_modules = True,
|
|
|
|
use_global_yarn_cache = True,
|
|
|
|
yarn_lock = "//rules/nodejs:yarn.lock",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Packaging
|
|
|
|
|
|
|
|
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
|
|
|
|
|
|
|
|
rules_pkg_dependencies()
|
|
|
|
|
|
|
|
# Docker Setup
|
|
|
|
|
|
|
|
load("@io_bazel_rules_docker//repositories:repositories.bzl", container_repositories = "repositories")
|
|
|
|
|
|
|
|
container_repositories()
|
|
|
|
|
|
|
|
load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
|
|
|
|
|
|
|
|
container_deps()
|
|
|
|
|
2021-01-29 09:18:22 +01:00
|
|
|
load("@io_bazel_rules_docker//repositories:py_repositories.bzl", "py_deps")
|
2021-01-04 09:35:31 +01:00
|
|
|
|
2021-01-29 09:18:22 +01:00
|
|
|
py_deps()
|
2021-01-04 09:35:31 +01:00
|
|
|
|
|
|
|
load("@io_bazel_rules_docker//java:image.bzl", java_image_repos = "repositories")
|
|
|
|
load("@io_bazel_rules_docker//python3:image.bzl", py3_image_repos = "repositories")
|
|
|
|
load("@io_bazel_rules_docker//nodejs:image.bzl", nodejs_image_repos = "repositories")
|
|
|
|
load("@io_bazel_rules_docker//rust:image.bzl", rust_image_repos = "repositories")
|
|
|
|
|
|
|
|
java_image_repos()
|
|
|
|
|
|
|
|
nodejs_image_repos()
|
|
|
|
|
|
|
|
py3_image_repos()
|
|
|
|
|
|
|
|
rust_image_repos()
|
|
|
|
|
|
|
|
# K8s
|
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_defaults", "k8s_repositories")
|
2021-01-04 09:35:31 +01:00
|
|
|
|
|
|
|
k8s_repositories()
|
|
|
|
|
|
|
|
load("@io_bazel_rules_k8s//k8s:k8s_go_deps.bzl", k8s_go_deps = "deps")
|
|
|
|
|
|
|
|
k8s_go_deps()
|
|
|
|
|
2022-03-28 16:39:36 +02:00
|
|
|
k8s_defaults(
|
|
|
|
name = "k8s_deploy",
|
|
|
|
image_chroot = "registry.infra.svc.cluster.local",
|
|
|
|
)
|
|
|
|
|
2021-01-04 09:35:31 +01:00
|
|
|
# Miscellaneous
|
|
|
|
|
|
|
|
load("//rules/misc:setup.bzl", "rules_misc_setup_internal")
|
|
|
|
|
|
|
|
rules_misc_setup_internal()
|
|
|
|
|
|
|
|
load("//rules/misc:install.bzl", "rules_misc_install_internal")
|
|
|
|
|
|
|
|
rules_misc_install_internal()
|