1+ """ORFS bazel setup."""
2+
13module (
24 name = "orfs" ,
35 version = "0.0.1" ,
79bazel_dep (name = "bazel-orfs" )
810git_override (
911 module_name = "bazel-orfs" ,
10- commit = "b12fc7a172d4211315ec36214f872595e084ab25 " ,
12+ commit = "d30e1987275cb54163a4dfde421392c31d0a7148 " ,
1113 remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git" ,
1214)
1315
@@ -22,3 +24,40 @@ git_override(
2224# module_name = "bazel-orfs", path = "../bazel-orfs"
2325#)
2426
27+
28+ bazel_dep (name = "rules_python" , version = "0.31.0" )
29+
30+ python = use_extension ("@rules_python//python/extensions:python.bzl" , "python" )
31+ python .toolchain (
32+ ignore_root_user_error = True ,
33+ python_version = "3.12" ,
34+ )
35+
36+ pip = use_extension ("@rules_python//python/extensions:pip.bzl" , "pip" )
37+ pip .parse (
38+ hub_name = "orfs-pip" ,
39+ python_version = "3.12" ,
40+ requirements_lock = "//:requirements_lock.txt" ,
41+ )
42+ use_repo (pip , "orfs-pip" )
43+
44+
45+ orfs = use_extension ("@bazel-orfs//:extension.bzl" , "orfs_repositories" )
46+ orfs .default (
47+ # To build an ORFS image from a PR:
48+ # ./build_openroad.sh --latest
49+ #
50+ # Check out the PRs and modify the local repository as needed
51+ # ./build_openroad.sh --no_init
52+ #
53+ # docker tag docker.io/openroad/flow-ubuntu22.04-builder:c46d41 gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41
54+ # docker push gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41
55+ # image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41",
56+ #
57+ # Official image https://hub.docker.com/r/openroad/orfs/tags
58+ image = "docker.io/openroad/orfs:v3.0-2130-g6b38aeeb" ,
59+ # image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:3d2c3d-2",
60+ sha256 = "f5b573d244862bc59f858e2a3586c48aef70989e98f6541099bd15a720e28e7e" ,
61+ )
62+ use_repo (orfs , "com_github_nixos_patchelf_download" )
63+ use_repo (orfs , "docker_orfs" )
0 commit comments