ci/aws/jenkins-ami

The Jenkins AMI module can be used to build an Amazon AMI with the Jenkins open source automation software installed. It is based on the Ubuntu 16.04 distribution. This module requires Packer to build the included template and uses the install-jenkins module.

We recommend that you use this module as an example, copy the included template and customize it specifically for your own needs.

Requirements

Usage

To build the AMI:

$ packer build -only=ubuntu-ami jenkins.json

You can also test the template, locally using Docker.

Build the Docker image for testing locally:

$ packer build -only=ubuntu-docker jenkins.json

And to run it:

$ OS_NAME=ubuntu-linux docker-compose up