Skip to content

Commit

Permalink
working docker setup
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz committed Mar 11, 2024
1 parent 0980179 commit 15b2c07
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
@@ -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"]))
Expand Down Expand Up @@ -62,15 +63,21 @@ 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"],
)

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"],
)

0 comments on commit 15b2c07

Please sign in to comment.