|
1 | 1 | build { |
2 | | - sources = ["source.azure-arm.image"] |
3 | 2 | name = "ubuntu-24_04" |
| 3 | + sources = var.sources |
4 | 4 |
|
5 | 5 | provisioner "shell" { |
6 | 6 | execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" |
@@ -76,6 +76,14 @@ build { |
76 | 76 | scripts = ["${path.root}/../scripts/build/configure-environment.sh"] |
77 | 77 | } |
78 | 78 |
|
| 79 | + provisioner "shell" { |
| 80 | + only = ["azure-arm.image"] |
| 81 | + environment_vars = ["IMAGE_VERSION=${var.image_version}", "IMAGE_OS=${var.image_os}", "HELPER_SCRIPTS=${var.helper_script_folder}"] |
| 82 | + execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" |
| 83 | + scripts = ["${path.root}/../scripts/build/configure-environment-azure-arm.sh"] |
| 84 | + } |
| 85 | + |
| 86 | + |
79 | 87 | provisioner "shell" { |
80 | 88 | environment_vars = ["DEBIAN_FRONTEND=noninteractive", "HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] |
81 | 89 | execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" |
@@ -124,7 +132,6 @@ provisioner "shell" { |
124 | 132 | "${path.root}/../scripts/build/install-haskell.sh", |
125 | 133 | "${path.root}/../scripts/build/install-java-tools.sh", |
126 | 134 | "${path.root}/../scripts/build/install-kubernetes-tools.sh", |
127 | | - "${path.root}/../scripts/build/install-miniconda.sh", |
128 | 135 | "${path.root}/../scripts/build/install-kotlin.sh", |
129 | 136 | "${path.root}/../scripts/build/install-mysql.sh", |
130 | 137 | "${path.root}/../scripts/build/install-nginx.sh", |
@@ -228,6 +235,7 @@ provisioner "shell" { |
228 | 235 | } |
229 | 236 |
|
230 | 237 | provisioner "shell" { |
| 238 | + only = ["azure-arm.image"] |
231 | 239 | execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" |
232 | 240 | inline = ["sleep 30", "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"] |
233 | 241 | } |
|
0 commit comments