Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (56 sloc) 1.34 KB
{
"variables": {
"base_ami": "ami-edf6758d",
"instance_type": "g2.2xlarge",
"region": "us-west-2"
},
"builders": [
{
"type": "amazon-ebs",
"region": "{{user `region`}}",
"source_ami": "{{user `base_ami`}}",
"instance_type": "{{user `instance_type`}}",
"ssh_username": "ubuntu",
"ami_name": "gpu {{timestamp}}",
"tags": {
"build_time": "{{timestamp}}"
},
"ami_block_device_mappings": [{
"device_name": "/dev/sda1",
"volume_type": "gp2",
"delete_on_termination": true,
"volume_size": 40
}],
"launch_block_device_mappings": [{
"device_name": "/dev/sda1",
"volume_type": "gp2",
"delete_on_termination": true,
"volume_size": 40
}]
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh"
],
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}"
},
{
"type": "shell",
"scripts": [
"scripts/cuda.sh",
"scripts/lfs.sh"
],
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}"
},
{
"type": "shell",
"scripts": [
"scripts/tf.sh"
],
"execute_command": "chmod +x {{ .Path }}; sudo -u ubuntu {{ .Vars }} {{ .Path }}"
}
]
}
You can’t perform that action at this time.