--- /dev/null
+---
+features:
+ - |
+ Docker image builds are now supported by the packer templates.
+upgrade:
+ - |
+ Requires first upgrading global-jjb to version v0.57.0 to pull in support
+ for selecting a packer-builder in the packer-merge jobs, otherwise existing
+ project packer-merge job builds *may* fail without the global-jjb updates
+ if builds are run on a Jenkins node that does not support Docker.
+ - |
+ Projects using AWS must ensure that the packer-merge jobs are updated to
+ set *packer-builder* to aws.
+
+ Example:
+
+ .. code-block:: yaml
+ :emphasize-lines: 19
+
+ - project:
+ name: packer-builder-jobs
+ jobs:
+ - gerrit-packer-merge
+
+ project: releng/builder
+ project-name: builder
+ branch: master
+ archive-artifacts: "**/*.log"
+
+ build-node: centos7-builder-2c-1g
+ build-timeout: 90
+ cron: "00 H 1 * *"
+
+ platforms:
+ - centos-7
+ - centos-8
+
+ packer-builder: aws
+ templates: builder
+ update-cloud-image: true
"vm_volume_size": "20",
"vm_image_disk_format": "",
"distro": null,
+ "docker_source_image": null,
"flavor": "v2-highcpu-1",
"ssh_user": null,
"ssh_proxy_host": ""
"use_blockstorage_volume": "{{user `vm_use_block_storage`}}",
"volume_size": "{{user `vm_volume_size`}}",
"image_disk_format": "{{user `vm_image_disk_format`}}"
+ },
+ {
+ "name": "docker",
+ "type": "docker",
+ "image": "{{ user `docker_source_image` }}",
+ "commit": true,
+ "changes": ["ENTRYPOINT [\"\"]", "CMD [\"\"]"]
}
],
"provisioners": [
"vm_volume_size": "20",
"vm_image_disk_format": "",
"distro": null,
+ "docker_source_image": null,
"flavor": "v2-highcpu-1",
"ssh_user": null,
"ssh_proxy_host": ""
"use_blockstorage_volume": "{{user `vm_use_block_storage`}}",
"volume_size": "{{user `vm_volume_size`}}",
"image_disk_format": "{{user `vm_image_disk_format`}}"
+ },
+ {
+ "name": "docker",
+ "type": "docker",
+ "image": "{{ user `docker_source_image` }}",
+ "commit": true,
+ "changes": ["ENTRYPOINT [\"\"]", "CMD [\"\"]"]
}
],
"provisioners": [
"source_ami_filter_owner": "679593333241",
"base_image": "LF - CentOS 7.2003 (2020-04-22)",
"distro": "CentOS 7",
+ "docker_source_image": "centos:7",
"ssh_user": "centos",
"cloud_user_data": "common-packer/provision/rh-user_data.sh"
}
"source_ami_filter_owner": "679593333241",
"base_image": "CentOS 8.2 (x86_64) [2020-06-11]",
"distro": "CentOS 8",
+ "docker_source_image": "centos:8",
"ssh_user": "centos",
"cloud_user_data": "common-packer/provision/rh-user_data.sh"
}
"source_ami_filter_owner": "099720109477",
"base_image": "LF - Ubuntu 16.04 LTS (2019-12-11)",
"distro": "Ubuntu 16.04",
+ "docker_source_image": "ubuntu:16.04",
"ssh_user": "ubuntu",
"cloud_user_data": "common-packer/provision/ubuntu-user_data.sh"
}
"source_ami_filter_owner": "099720109477",
"base_image": "LF - Ubuntu 18.04 LTS (2020-07-29)",
"distro": "Ubuntu 18.04",
+ "docker_source_image": "ubuntu:18.04",
"ssh_user": "ubuntu",
"cloud_user_data": "common-packer/provision/ubuntu-user_data.sh"
}