-
Notifications
You must be signed in to change notification settings - Fork 0
/
fahclient.json
45 lines (43 loc) · 1.48 KB
/
fahclient.json
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
{
"builders": [
{
"type": "googlecompute",
"project_id": "",
"source_image_family": "ubuntu-1804-lts",
"source_image_project_id": "ubuntu-os-cloud",
"zone": "europe-west1-b",
"disk_size": "10",
"image_name": "fahclient",
"image_family": "fahclient",
"ssh_username": "ubuntu"
}
],
"provisioners": [
{
"type": "shell",
"inline": ["/usr/bin/cloud-init status --wait",
"sudo apt-get update",
"curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb",
"sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb",
"sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub",
"sudo apt-get update",
"sudo apt-get install -y cuda"
]
},
{
"type": "file",
"source": "config.xml",
"destination": "/home/ubuntu/config.xml"
},
{
"type": "shell",
"inline": ["sudo mkdir /etc/fahclient/","sudo mv /home/ubuntu/config.xml /etc/fahclient/config.xml"]
},
{
"type": "shell",
"inline": ["wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb",
"sudo dpkg -i fahclient_7.5.1_amd64.deb",
"cd /var/lib/fahclient/ && sudo wget https://apps.foldingathome.org/GPUs.txt"]
}
]
}