From 35be26d2a9d69789ba33647aab647301f918856c Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Thu, 9 May 2024 13:16:22 +0200 Subject: [PATCH] [Ubuntu] Install Bazel and Bazelisk on Ubuntu 24.04 (#9810) --- images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 | 6 ++---- images/ubuntu/scripts/tests/Tools.Tests.ps1 | 2 +- images/ubuntu/templates/ubuntu-24.04.pkr.hcl | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 b/images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 index 6531c1d29..46fb0d95e 100644 --- a/images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 +++ b/images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 @@ -102,10 +102,8 @@ $tools = $installedSoftware.AddHeader("Tools") $tools.AddToolVersion("Ansible", $(Get-AnsibleVersion)) $tools.AddToolVersion("apt-fast", $(Get-AptFastVersion)) $tools.AddToolVersion("AzCopy", $(Get-AzCopyVersion)) -if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) { - $tools.AddToolVersion("Bazel", $(Get-BazelVersion)) - $tools.AddToolVersion("Bazelisk", $(Get-BazeliskVersion)) -} +$tools.AddToolVersion("Bazel", $(Get-BazelVersion)) +$tools.AddToolVersion("Bazelisk", $(Get-BazeliskVersion)) $tools.AddToolVersion("Bicep", $(Get-BicepVersion)) if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) { $tools.AddToolVersion("Buildah", $(Get-BuildahVersion)) diff --git a/images/ubuntu/scripts/tests/Tools.Tests.ps1 b/images/ubuntu/scripts/tests/Tools.Tests.ps1 index 5db3e74d3..529010cee 100644 --- a/images/ubuntu/scripts/tests/Tools.Tests.ps1 +++ b/images/ubuntu/scripts/tests/Tools.Tests.ps1 @@ -118,7 +118,7 @@ Describe "Ansible" { } } -Describe "Bazel" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) { +Describe "Bazel" { It "" -TestCases @( @{ ToolName = "bazel" } @{ ToolName = "bazelisk" } diff --git a/images/ubuntu/templates/ubuntu-24.04.pkr.hcl b/images/ubuntu/templates/ubuntu-24.04.pkr.hcl index abea0141d..89bc29a26 100644 --- a/images/ubuntu/templates/ubuntu-24.04.pkr.hcl +++ b/images/ubuntu/templates/ubuntu-24.04.pkr.hcl @@ -300,6 +300,7 @@ provisioner "shell" { "${path.root}/../scripts/build/install-mysql.sh", "${path.root}/../scripts/build/install-nginx.sh", "${path.root}/../scripts/build/install-nodejs.sh", + "${path.root}/../scripts/build/install-bazel.sh", "${path.root}/../scripts/build/install-php.sh", "${path.root}/../scripts/build/install-postgresql.sh", "${path.root}/../scripts/build/install-pulumi.sh",