Skip to content

Commit 63d65e3

Browse files
committed
[bazel] Move rules_oci to MODULE
1 parent bf0dcd9 commit 63d65e3

File tree

3 files changed

+585
-81
lines changed

3 files changed

+585
-81
lines changed

MODULE.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bazel_dep(name = "rules_dotnet", version = "0.14.0")
1111
bazel_dep(name = "rules_java", version = "7.4.0")
1212
bazel_dep(name = "rules_jvm_external", version = "6.0")
1313
bazel_dep(name = "rules_nodejs", version = "5.8.3")
14+
bazel_dep(name = "rules_oci", version = "1.0.0")
1415
bazel_dep(name = "rules_python", version = "0.31.0")
1516
bazel_dep(name = "rules_ruby", version = "0.8.1")
1617
bazel_dep(name = "rules_rust", version = "0.40.0")
@@ -71,6 +72,24 @@ use_repo(selenium_paket, "paket.nuget")
7172

7273
register_toolchains("@dotnet_toolchains//:all")
7374

75+
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
76+
oci.pull(
77+
name = "java_image_base",
78+
digest = "sha256:161a1d97d592b3f1919801578c3a47c8e932071168a96267698f4b669c24c76d",
79+
image = "gcr.io/distroless/java17",
80+
)
81+
oci.pull(
82+
name = "firefox_standalone",
83+
digest = "sha256:b6d8279268b3183d0d33e667e82fec1824298902f77718764076de763673124f",
84+
image = "index.docker.io/selenium/standalone-firefox",
85+
)
86+
oci.pull(
87+
name = "chrome_standalone",
88+
digest = "sha256:1b809a961a0a77787a7cccac74ddc5570b7e89747f925b8469ddb9a6624d4ece",
89+
image = "index.docker.io/selenium/standalone-chrome",
90+
)
91+
use_repo(oci, "chrome_standalone", "firefox_standalone", "java_image_base")
92+
7493
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
7594
python.toolchain(
7695
is_default = True,

0 commit comments

Comments
 (0)