2017-05-15 18:56:41 +00:00
|
|
|
{
|
|
|
|
"builders": [{
|
|
|
|
"type": "amazon-ebs",
|
|
|
|
"region": "us-east-1",
|
2020-10-14 15:01:54 +00:00
|
|
|
"source_ami_filter": {
|
|
|
|
"filters": {
|
|
|
|
"virtualization-type": "hvm",
|
|
|
|
"architecture": "x86_64",
|
|
|
|
"name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*",
|
|
|
|
"block-device-mapping.volume-type": "gp2",
|
|
|
|
"root-device-type": "ebs"
|
|
|
|
},
|
|
|
|
"owners": ["099720109477"],
|
|
|
|
"most_recent": true
|
|
|
|
},
|
2017-05-15 18:56:41 +00:00
|
|
|
"instance_type": "t2.medium",
|
|
|
|
"ssh_username": "ubuntu",
|
2020-10-14 15:01:54 +00:00
|
|
|
"ami_name": "hashistack {{timestamp}}"
|
2017-05-15 18:56:41 +00:00
|
|
|
}],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"sudo mkdir /ops",
|
|
|
|
"sudo chmod 777 /ops"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2017-11-15 19:31:46 +00:00
|
|
|
"source": "../shared",
|
2017-05-15 18:56:41 +00:00
|
|
|
"destination": "/ops"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
2017-11-15 19:31:46 +00:00
|
|
|
"source": "../examples",
|
2017-05-15 18:56:41 +00:00
|
|
|
"destination": "/ops"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
2019-03-11 19:08:10 +00:00
|
|
|
"script": "../shared/scripts/setup.sh",
|
|
|
|
"environment_vars": [
|
|
|
|
"INSTALL_NVIDIA_DOCKER=true"
|
|
|
|
]
|
2017-05-15 18:56:41 +00:00
|
|
|
}]
|
|
|
|
}
|