Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions ic-os/dev-tools/bare_metal_deployment/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ whl_filegroup(
tags = ["manual"],
whl = "@python_deps//idracredfishsupport:whl",
)

REDFISH_RUNTIME_SCRIPTS = [
"GetSetPowerStateREDFISH.py",
"InsertEjectVirtualMediaREDFISH.py",
"SetNextOneTimeBootVirtualMediaDeviceOemREDFISH.py",
]

genrule(
name = "redfish_runtime_scripts",
srcs = [":redfish_scripts"],
outs = REDFISH_RUNTIME_SCRIPTS,
cmd = "src=$(location :redfish_scripts)/IdracRedfishSupport-0.0.8.data/scripts; " +
"for out in $(OUTS); do cp \"$$src/$$(basename $$out)\" \"$$out\"; done",
tags = ["manual"],
)
6 changes: 4 additions & 2 deletions ic-os/dev-tools/bare_metal_deployment/tools.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def launch_bare_metal(name, image_zst_file):
"--deterministic_ips_tool",
"$(location //rs/ic_os/networking/deterministic_ips:deterministic-ips)",
"--idrac_script",
"$(location //ic-os/dev-tools/bare_metal_deployment:redfish_scripts)" + "/IdracRedfishSupport-0.0.8.data/scripts/VirtualDiskExpansionREDFISH.py",
"$(location //ic-os/dev-tools/bare_metal_deployment:GetSetPowerStateREDFISH.py)",
"--benchmark_driver_script",
"$(location //ic-os/dev-tools/bare_metal_deployment:benchmark_driver.sh)",
"--benchmark_runner_script",
Expand All @@ -52,7 +52,9 @@ def launch_bare_metal(name, image_zst_file):
":" + binary_name,
image_zst_file,
"//rs/ic_os/dev_test_tools/setupos-image-config:setupos-inject-config",
"//ic-os/dev-tools/bare_metal_deployment:redfish_scripts",
"//ic-os/dev-tools/bare_metal_deployment:GetSetPowerStateREDFISH.py",
"//ic-os/dev-tools/bare_metal_deployment:InsertEjectVirtualMediaREDFISH.py",
"//ic-os/dev-tools/bare_metal_deployment:SetNextOneTimeBootVirtualMediaDeviceOemREDFISH.py",
"//ic-os/dev-tools/bare_metal_deployment:benchmark_runner.sh",
"//ic-os/dev-tools/bare_metal_deployment:benchmark_driver.sh",
"//rs/ic_os/networking/deterministic_ips:deterministic-ips",
Expand Down
Loading