Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
42 lines (35 loc) · 1.47 KB
/
Copy pathMODULE.bazel
File metadata and controls
42 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""Bazel module for rules_minidock - Minimal Docker/OCI container image rules."""
module(
name = "rules_minidock",
version = "0.2.0",
compatibility_level = 2,
)
# Required dependencies
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "zstd", version = "1.5.7")
bazel_dep(name = "rules_multitool", version = "1.11.1")
bazel_dep(name = "rules_java", version = "8.6.1")
bazel_dep(name = "rules_python", version = "0.40.0")
multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
multitool.hub(lockfile = "//minidock/remote_tools:multitool.lock.json")
use_repo(multitool, "multitool")
# Test dependencies
python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
python.toolchain(python_version = "3.10")
use_repo(python, "python_versions")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True)
pip.parse(
hub_name = "pip",
python_version = "3.10",
requirements_lock = "//tests/simple_flow:requirements_lock_3_10.txt",
)
use_repo(pip, "pip")
# Test container repositories
external_containers = use_extension("//minidock:external_container_repo.bzl", "external_container_repo", dev_dependency = True)
external_containers.container(
name = "bazel_320",
digest = "sha256:08434856d8196632b936dd082b8e03bae0b41346299aedf60a0d481ab427a69f",
registry = "gcr.io",
repository = "bazel-public/bazel",
)
use_repo(external_containers, "bazel_320")