Created
July 23, 2018 21:11
-
-
Save ChrisDowning/1f68f102b747103e36634a50faea8024 to your computer and use it in GitHub Desktop.
Simple OpenHPC Packer build
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-6e28b517", | |
"instance_type": "t2.micro", | |
"ssh_username": "centos", | |
"ami_name": "packer-openhpc {{timestamp}}" | |
}], | |
"provisioners": [{ | |
"type": "shell", | |
"inline": [ | |
"sudo yum clean all", | |
"sudo yum update -y", | |
"sudo yum install http://build.openhpc.community/OpenHPC:/1.3/CentOS_7/x86_64/ohpc-release-1.3-1.el7.x86_64.rpm -y", | |
"sudo yum install ohpc-base -y", | |
"sudo yum install ohpc-autotools EasyBuild-ohpc hwloc-ohpc spack-ohpc valgrind-ohpc gnu7-compilers-ohpc llvm5-compilers-ohpc openmpi3-gnu7-ohpc mpich-gnu7-ohpc ohpc-gnu7-perf-tools lmod-defaults-gnu7-openmpi3-ohpc ohpc-gnu7-serial-libs ohpc-gnu7-io-libs ohpc-gnu7-python-libs ohpc-gnu7-runtimes ohpc-gnu7-mpich-parallel-libs ohpc-gnu7-openmpi3-parallel-libs lmod-ohpc -y", | |
"sudo yum clean all" | |
] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment