databuild/examples/basic_graph/MODULE.bazel
Stuart Axelbrooke 6c4743659c
Some checks are pending
/ setup (push) Waiting to run
Working app serving
2025-07-10 23:43:47 -07:00

63 lines
2 KiB
Python

module(
name = "databuild_basic_composition",
version = "0.1",
)
# Databuild dep - overridden so ignore version
bazel_dep(name = "databuild", version = "0.0")
local_path_override(
module_name = "databuild",
path = "../..",
)
# Java dependencies
bazel_dep(name = "rules_java", version = "8.11.0")
# Configure JDK 17
register_toolchains("@rules_java//toolchains:all")
bazel_dep(name = "rules_jvm_external", version = "6.3")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
"com.fasterxml.jackson.core:jackson-core:2.15.2",
"com.fasterxml.jackson.core:jackson-databind:2.15.2",
"com.fasterxml.jackson.core:jackson-annotations:2.15.2",
"com.fasterxml.jackson.module:jackson-module-jsonSchema:2.15.2",
],
repositories = [
"https://repo1.maven.org/maven2",
],
)
use_repo(maven, "maven")
# Rules OCI - necessary for producing a docker container
bazel_dep(name = "rules_oci", version = "2.2.6")
# For testing, we also recommend https://registry.bazel.build/modules/container_structure_test
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
# Declare external images you need to pull, for example:
oci.pull(
name = "debian",
image = "docker.io/library/python",
platforms = [
"linux/arm64/v8",
"linux/amd64",
],
# 'latest' is not reproducible, but it's convenient.
# During the build we print a WARNING message that includes recommended 'digest' and 'platforms'
# values which you can use here in place of 'tag' to pin for reproducibility.
tag = "3.12-bookworm",
)
# For each oci.pull call, repeat the "name" here to expose them as dependencies.
use_repo(oci, "debian", "debian_linux_amd64", "debian_linux_arm64_v8")
# Platforms for specifying linux/arm
bazel_dep(name = "platforms", version = "0.0.11")
# TypeScript rules for handling skipLibCheck flag
# https://github.com/aspect-build/rules_ts/issues/483#issuecomment-1814586063
bazel_dep(name = "aspect_rules_ts", version = "3.6.3")