-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstarcluster-ami.json
More file actions
49 lines (43 loc) · 1.8 KB
/
Copy pathstarcluster-ami.json
File metadata and controls
49 lines (43 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"source_ami": "ami-7b89cc11"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami": "{{user `source_ami`}}",
"instance_type": "c3.large",
"ssh_username": "ubuntu",
"ami_name": "StarCluster AMI (Ubuntu 14.04 LTS {{timestamp}})",
"enhanced_networking": true
}],
"provisioners": [{
"type": "shell",
"inline": [
"sleep 30",
"sudo apt-get -y update",
"sudo apt-get -y upgrade",
"sudo apt-get -y install build-essential git parallel",
"sudo apt-get install -y nfs-kernel-server nfs-common rpcbind upstart",
"sudo ln -s /etc/init.d/nfs-kernel-server /etc/init.d/nfs",
"sudo ln -s /lib/systemd/system/nfs-kernel-server.service /lib/systemd/system/nfs.service",
"sudo ln -s /lib/init/upstart-job /etc/init.d/portmap",
"sudo ln -s /lib/init/upstart-job /etc/init.d/portmap-wait",
"curl -L https://github.com/brunogrande/starcluster-ami-config/blob/master/sge.tar.gz?raw=true | sudo tar -xz -C /opt/",
"sudo sh -c 'echo deb http://www.duinsoft.nl/pkg debs all > /etc/apt/sources.list.d/duinsoft.list'",
"sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 0xE18CE6625CB26B26",
"sudo apt-get -y update",
"sudo apt-get -y install update-sun-jre",
"sudo sh -c 'echo deb http://cran.stat.sfu.ca/bin/linux/ubuntu trusty/ > /etc/apt/sources.list.d/cran.list'",
"sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9",
"sudo apt-get -y update",
"sudo apt-get -y install r-base r-base-dev",
"sudo apt-get -y install python-pip",
"sudo pip install kronos-pipeliner"
]
}]
}