Skip to content

Instantly share code, notes, and snippets.

@revilokeb
Created March 18, 2016 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revilokeb/d9d90998edd7c1dc6ac7 to your computer and use it in GitHub Desktop.
Save revilokeb/d9d90998edd7c1dc6ac7 to your computer and use it in GitHub Desktop.
Packer example for building deepdetect
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-west-1",
"source_ami": "ami-3bc24748",
"instance_type": "g2.2xlarge",
"ssh_username": "ubuntu",
"ami_name": "deepdetect {{timestamp}}"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sleep 60",
"cd deepdetect/build",
"cmake .. -DUSE_CUDNN=ON",
"make"
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment