az-hop/packer
Esthela Gallardo d27bd645d3
adding definition files to build custom HPC image based on Ubuntu (#1880)
* adding definition files to build custom HPC image based on Ubuntu

* using default install script for HPC images

* changes required to run custom ubuntu 20 images

* adding ci image definition file and updating configuration scripts

* adding ubuntu desktop image and cleaning up scripts
2024-04-19 15:18:04 +02:00
..
scripts adding definition files to build custom HPC image based on Ubuntu (#1880) 2024-04-19 15:18:04 +02:00
templates
.yamllint
azhop-centos79-desktop3d-ci.json
azhop-centos79-desktop3d.json
azhop-centos79-v2-rdma-ci.json
azhop-centos79-v2-rdma-gpgpu.json
azhop-compute-almalinux-8_7-ci.json
azhop-compute-almalinux-8_7.json
azhop-compute-centos-7_9.json
azhop-compute-ubuntu-20_04.json
azhop-desktop-almalinux-8_7.json
azhop-desktop-centos-7_9-gen1.json
azhop-desktop-centos-7_9.json
azhop-desktop-ubuntu-20_04.json
azhop-ubuntu-20_04-desktop3d-ci.json adding definition files to build custom HPC image based on Ubuntu (#1880) 2024-04-19 15:18:04 +02:00
azhop-ubuntu-20_04-v2-rdma-gpgpu-ci.json adding definition files to build custom HPC image based on Ubuntu (#1880) 2024-04-19 15:18:04 +02:00
base-centos79-v2-rdma.json
base-ubuntu-20_04-v2-rdma-gpgpu.json adding definition files to build custom HPC image based on Ubuntu (#1880) 2024-04-19 15:18:04 +02:00
build_image.sh
readme.md

readme.md

Building the images

  • Fill up the spn.json with the SPN used by Packer and the keyvault in which it's secret is stored (using the spn name as a secret name)
{
  "spn_name": "",
  "key_vault": ""
}

The file options.json is automatically created for you after the infrastructure deployment, there is no need to update it.

It contains the following fields:

{
  "var_subscription_id": "",
  "var_resource_group": ""
}

Build an image with the build_image.sh helper script as follows:

./build_image.sh -i packer_file.json [-f|--force] [-o|--options options.json]

Note: Use the var_image variable in your image name, it will be replaced by the name of the packer file

To list existing marketplace image use this command

az vm image list -l westeurope -p Openlogic --all -o table