Use packer to create the jenkins linux slave AMI.
Review Request #3825 - Created May 4, 2016 and submitted
|benjyw, kwlzn, patricklaw, stuhood, zundel|
This introduces packer for automated AMI builds and adds a doc to cover how to use the tool to build a new Jenkins slave image and use it to launch Jenkins slaves with. Jenkinsfile | 3 + build-support/packer/README.md | 135 +++++++++++++++++++++++++++++++++++++++++++ build-support/packer/images/check-ami-success.png | Bin 0 -> 26948 bytes build-support/packer/jenkins-slave.customize.sh | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++ build-support/packer/jenkins-slave.json | 17 ++++++ build-support/packer/jenkins-slave.packages.sh | 82 +++++++++++++++++++++++++++ 6 files changed, 391 insertions(+)
AWS_PROFILE=pantsbuild packer-io build jenkins-slave.jsonto
now powering this CI on master:
Legacy Travis went green here:
NB: Reviewers were pulled from those with Jenkins admin role, but its expected at this point Patrick is the expert reviewer. Other folks can treat this /cc unless they get really interested in the details.
Noting that - as per usual for jsirois work not backed by a runtime or compiler - there are many typos and instances of speaking in tongues here. I'm leaving as-is since follow-ups are imminent (™) and it really is a shame to contribute to global warming for a change that is pure-new and not connected to and production code. Yes, lame excuse.
Status: Closed (submitted)
Now on master: git log -1 origin/master commit 50cb7c065b8d92c6c9c6fdbc96f6c4552d4ceaf5 Author: John Sirois <firstname.lastname@example.org> Date: Tue May 3 16:59:35 2016 -0600 Use packer to create the jenkins linux slave AMI. This introduces packer for automated AMI builds and adds a doc to cover how to use the tool to build a new Jenkins slave image and use it to launch Jenkins slaves with. Testing Done: Used `AWS_PROFILE=pantsbuild packer-io build jenkins-slave.json` to create the `ami-0adc3c67` aka `pantsbuild-jenkins-slave.1462400935` AMI now powering this CI on master: http://jenkins.pantsbuild.org/job/pantsbuild/job/pants/branch/master/15 Legacy Travis went green here: https://travis-ci.org/pantsbuild/pants/builds/127937335 Bugs closed: 3334 Reviewed at https://rbcommons.com/s/twitter/r/3825/