| Lorenz Brun | fc5dbc6 | 2020-05-28 12:18:07 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | |
| 3 | go_library( |
| Lorenz Brun | d13c1c6 | 2022-03-30 19:58:58 +0200 | [diff] [blame] | 4 | name = "launch", |
| Serge Bazanski | 05f813b | 2023-03-16 17:58:39 +0100 | [diff] [blame] | 5 | srcs = [ |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 6 | "cluster.go", |
| 7 | "insecure_key.go", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 8 | "launch.go", |
| Tim Windelschmidt | d0cdb57 | 2025-03-27 17:18:39 +0100 | [diff] [blame] | 9 | "log.go", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 10 | "metroctl.go", |
| 11 | "prefixed_stdio.go", |
| 12 | "swtpm.go", |
| Serge Bazanski | 05f813b | 2023-03-16 17:58:39 +0100 | [diff] [blame] | 13 | ], |
| Tim Windelschmidt | 244b567 | 2024-02-06 10:18:56 +0100 | [diff] [blame] | 14 | data = [ |
| Tim Windelschmidt | 6120f38 | 2024-09-03 16:31:10 +0200 | [diff] [blame] | 15 | "//metropolis/cli/metroctl:metroctl_lite", |
| Jan Schär | 3b0c8dd | 2025-06-23 10:32:07 +0000 | [diff] [blame] | 16 | "//metropolis/node:oci_image_uncompressed", |
| 17 | "//metropolis/node/abloader", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 18 | "//metropolis/test/nanoswitch:initramfs", |
| 19 | "//metropolis/test/swtpm/certtool", |
| 20 | "//metropolis/test/swtpm/swtpm_cert", |
| 21 | "//osbase/test/ktest:linux-testing", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 22 | "//third_party/edk2:OVMF_CODE.fd", |
| 23 | "//third_party/edk2:OVMF_VARS.fd", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 24 | "@swtpm", |
| 25 | "@swtpm//:swtpm_localca", |
| 26 | "@swtpm//:swtpm_setup", |
| Tim Windelschmidt | 244b567 | 2024-02-06 10:18:56 +0100 | [diff] [blame] | 27 | ], |
| Serge Bazanski | 31370b0 | 2021-01-07 16:31:14 +0100 | [diff] [blame] | 28 | importpath = "source.monogon.dev/metropolis/test/launch", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 29 | visibility = ["//visibility:public"], |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 30 | x_defs = { |
| 31 | "xSwtpmPath": "$(rlocationpath @swtpm )", |
| 32 | "xSwtpmSetupPath": "$(rlocationpath @swtpm//:swtpm_setup )", |
| 33 | "xSwtpmLocalCAPath": "$(rlocationpath @swtpm//:swtpm_localca )", |
| 34 | "xSwtpmCertPath": "$(rlocationpath //metropolis/test/swtpm/swtpm_cert )", |
| 35 | "xCerttoolPath": "$(rlocationpath //metropolis/test/swtpm/certtool )", |
| Tim Windelschmidt | 6120f38 | 2024-09-03 16:31:10 +0200 | [diff] [blame] | 36 | "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl:metroctl_lite )", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 37 | "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )", |
| 38 | "xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )", |
| 39 | "xKernelPath": "$(rlocationpath //osbase/test/ktest:linux-testing )", |
| 40 | "xInitramfsPath": "$(rlocationpath //metropolis/test/nanoswitch:initramfs )", |
| Jan Schär | 3b0c8dd | 2025-06-23 10:32:07 +0000 | [diff] [blame] | 41 | "xNodeImagePath": "$(rlocationpath //metropolis/node:oci_image_uncompressed )", |
| 42 | "xAbloaderPath": "$(rlocationpath //metropolis/node/abloader )", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 43 | }, |
| Lorenz Brun | fc5dbc6 | 2020-05-28 12:18:07 +0200 | [diff] [blame] | 44 | deps = [ |
| Serge Bazanski | ca8d951 | 2024-09-12 14:20:57 +0200 | [diff] [blame] | 45 | "//go/logging", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 46 | "//metropolis/cli/metroctl/core", |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame^] | 47 | "//metropolis/installer/install", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 48 | "//metropolis/node", |
| 49 | "//metropolis/node/core/curator/proto/api", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 50 | "//metropolis/node/core/rpc", |
| 51 | "//metropolis/node/core/rpc/resolver", |
| 52 | "//metropolis/proto/api", |
| 53 | "//metropolis/proto/common", |
| Jan Schär | 3b0c8dd | 2025-06-23 10:32:07 +0000 | [diff] [blame] | 54 | "//osbase/blockdev", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 55 | "//osbase/logbuffer", |
| Jan Schär | 3b0c8dd | 2025-06-23 10:32:07 +0000 | [diff] [blame] | 56 | "//osbase/oci", |
| 57 | "//osbase/oci/osimage", |
| Jan Schär | 9d2f3c6 | 2025-04-14 11:17:22 +0000 | [diff] [blame] | 58 | "//osbase/oci/registry", |
| Jan Schär | 3b0c8dd | 2025-06-23 10:32:07 +0000 | [diff] [blame] | 59 | "//osbase/structfs", |
| Tim Windelschmidt | d0cdb57 | 2025-03-27 17:18:39 +0100 | [diff] [blame] | 60 | "//osbase/test/qemu", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 61 | "@com_github_cenkalti_backoff_v4//:backoff", |
| 62 | "@com_github_kballard_go_shellquote//:go-shellquote", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 63 | "@io_bazel_rules_go//go/runfiles", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 64 | "@io_k8s_client_go//kubernetes", |
| 65 | "@io_k8s_client_go//rest", |
| Jan Schär | d1a8b64 | 2024-12-03 17:40:41 +0100 | [diff] [blame] | 66 | "@io_k8s_utils//ptr", |
| Tim Windelschmidt | 3325b4b | 2024-07-15 19:19:49 +0200 | [diff] [blame] | 67 | "@org_golang_google_grpc//:grpc", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 68 | "@org_golang_google_grpc//codes", |
| 69 | "@org_golang_google_grpc//status", |
| 70 | "@org_golang_google_protobuf//proto", |
| 71 | "@org_golang_x_net//proxy", |
| Lorenz Brun | d13c1c6 | 2022-03-30 19:58:58 +0200 | [diff] [blame] | 72 | "@org_golang_x_sys//unix", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 73 | "@org_uber_go_multierr//:multierr", |
| Lorenz Brun | fc5dbc6 | 2020-05-28 12:18:07 +0200 | [diff] [blame] | 74 | ], |
| 75 | ) |