Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-2953

Migrate packer-images to HCL syntax

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Since Packer 1.6.x, the language HCL can be used for writing Packer templates instead of JSON.

      The goal of this task is to migrate our current templates in https://github.com/jenkins-infra/packer-images from JSON to HCL.

      Benefits:

      • [Technical Debt] HCL provides validation and plugin management: by switching to HCL we'll be able to ditch https://github.com/jenkins-infra/docker-packer :party:
      • [Technical Debt] HCL is going to be the default and recommended in Packer, so better be prepared
      • [Nitpick] HCL allows comments
      • [Contributor Experience] HCL allows to use less shell/powershell scripting, providing a better user experience and build reproductibility

        Attachments

          Activity

          Hide
          dduportal Damien Duportal added a comment -

          First PR focused only on the syntax change: https://github.com/jenkins-infra/packer-images/pull/54

          Show
          dduportal Damien Duportal added a comment - First PR focused only on the syntax change: https://github.com/jenkins-infra/packer-images/pull/54
          Hide
          dduportal Damien Duportal added a comment -

          Second PR, focused on factorization and code cleanup: https://github.com/jenkins-infra/packer-images/pull/56 to avoid spreading

          Show
          dduportal Damien Duportal added a comment - Second PR, focused on factorization and code cleanup: https://github.com/jenkins-infra/packer-images/pull/56 to avoid spreading

            People

            Assignee:
            dduportal Damien Duportal
            Reporter:
            dduportal Damien Duportal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: