Created
March 18, 2016 11:17
-
-
Save revilokeb/d9d90998edd7c1dc6ac7 to your computer and use it in GitHub Desktop.
Packer example for building deepdetect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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