Skip to content

Commit

Permalink
Add a reboot step and then install v4l2loopback
Browse files Browse the repository at this point in the history
  • Loading branch information
jwmoss committed Dec 4, 2024
1 parent e7d5cc7 commit 2911f83
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gcp.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,30 @@ build {
]
}

provisioner "shell" {
execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
expect_disconnect = true
pause_before = "30s"
start_retry_timeout = "30m"
scripts = [
"${path.cwd}/scripts/linux/common/reboot.sh"
]
}

provisioner "shell" {
execute_command = "sudo -S bash -c '{{ .Vars }} {{ .Path }}'"
environment_vars = [
"CLOUD=google",
"TC_ARCH=${var.tc_arch}",
"TASKCLUSTER_VERSION=${var.taskcluster_version}",
"NUM_LOOPBACK_AUDIO_DEVICES=8",
"NUM_LOOPBACK_VIDEO_DEVICES=8"
]
scripts = [
"${path.cwd}/scripts/linux/common/v4l2loopback.sh"
]
}

## Run all tests
provisioner "shell" {
execute_command = "sudo -S bash -c '{{ .Vars }} {{ .Path }}'"
Expand Down

0 comments on commit 2911f83

Please sign in to comment.