-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
37 lines (37 loc) · 1.31 KB
/
template.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
{
"variables": {
"access_key": "{{env `access_key`}}",
"secret_key": "{{env `secret_key`}}",
"region": "{{env `region`}}",
"instance_type": "{{env `instance_type`}}",
"ssh_username": "{{env `ssh_username`}}"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `access_key`}}",
"secret_key": "{{user `secret_key`}}",
"region": "{{user `region`}}",
"source_ami": "ami-80861296",
"instance_type": "{{user `instance_type`}}",
"ssh_username": "ubuntu",
"ami_name": "mogura-geth {{timestamp}}"
}],
"provisioners": [
{
"type": "shell",
"inline": [
"sleep 30",
"sudo apt-get -y update",
"sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common",
"curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -",
"sudo apt-key fingerprint 0EBFCD88",
"sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\"",
"sudo apt-get -y update",
"sudo apt-get -y install docker-ce",
"sudo apt-get -y install software-properties-common",
"sudo add-apt-repository -y ppa:ethereum/ethereum",
"sudo apt-get -y update",
"sudo apt-get -y install ethereum"
]
}]
}