mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Instead of hard-coding the base AMI for our Packer image for Ubuntu, use the latest from Canonical so that we always have their current kernel patches.
45 lines
986 B
JSON
45 lines
986 B
JSON
{
|
|
"builders": [
|
|
{
|
|
"type": "amazon-ebs",
|
|
"region": "us-east-1",
|
|
"source_ami_filter": {
|
|
"filters": {
|
|
"virtualization-type": "hvm",
|
|
"architecture": "x86_64",
|
|
"name": "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*",
|
|
"block-device-mapping.volume-type": "gp2",
|
|
"root-device-type": "ebs"
|
|
},
|
|
"owners": [
|
|
"099720109477"
|
|
],
|
|
"most_recent": true
|
|
},
|
|
"instance_type": "t2.medium",
|
|
"ssh_username": "ubuntu",
|
|
"iam_instance_profile": "packer_build",
|
|
"ami_name": "nomad-e2e-{{timestamp}}",
|
|
"tags": {
|
|
"OS": "Ubuntu"
|
|
}
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "file",
|
|
"source": "./linux",
|
|
"destination": "/tmp/linux"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "../config",
|
|
"destination": "/tmp/config"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"script": "./linux/setup.sh"
|
|
}
|
|
]
|
|
}
|