diff --git a/BUILD b/BUILD index f9dfc4a5..e9669b6e 100644 --- a/BUILD +++ b/BUILD @@ -1,4 +1,5 @@ load("//:openroad.bzl", "build_openroad") +load("@rules_oci//oci:defs.bzl", "oci_tarball", "oci_push") # FIXME: this shouldn't be required exports_files(glob(["*.mk"])) @@ -62,6 +63,12 @@ build_openroad( verilog_files = ["test/rtl/L1MetadataArray.sv"], ) +oci_tarball( + name = "orfs_env", + image = "@orfs_image", + repo_tags = ["bazel-orfs/orfs_env:latest"], +) + sh_binary( name = "docker_shell", srcs = ["docker_shell.sh"], @@ -69,8 +76,8 @@ sh_binary( genrule( name = "docker_test", - srcs = ["@orfs_image"], + srcs = ["//:orfs_env"], tools = ["//:docker_shell"], - cmd = "OR_IMAGE=$(location @orfs_image) $(location //:docker_shell) yosys --version && openroad --version", + cmd = "OR_IMAGE=bazel-orfs/orfs_env:latest $(location //:docker_shell) openroad -help; touch placeholder", outs = ["placeholder"], )