17755: add the singularity-container to the compute node image.
[arvados.git] / tools / compute-images / arvados-images-aws.json
1 {
2   "variables": {
3     "arvados_cluster": "",
4     "associate_public_ip_address": "true",
5     "aws_access_key": "",
6     "aws_profile": "",
7     "aws_secret_key": "",
8     "aws_source_ami": "ami-04d70e069399af2e9",
9     "build_environment": "aws",
10     "public_key_file": "",
11     "reposuffix": "",
12     "resolver": "",
13     "ssh_user": "admin",
14     "subnet_id": "",
15     "vpc_id": ""
16   },
17   "builders": [{
18     "type": "amazon-ebs",
19     "profile": "{{ user `aws_profile`}}",
20     "access_key": "{{user `aws_access_key`}}",
21     "secret_key": "{{user `aws_secret_key`}}",
22     "region": "{{user `aws_default_region`}}",
23     "ena_support": "true",
24     "source_ami": "{{user `aws_source_ami`}}",
25     "instance_type": "m4.large",
26     "vpc_id": "{{user `vpc_id`}}",
27     "subnet_id": "{{user `subnet_id`}}",
28     "associate_public_ip_address": "{{user `associate_public_ip_address`}}",
29     "ssh_username": "{{user `ssh_user`}}",
30     "ami_name": "arvados-{{user `arvados_cluster`}}-compute-{{isotime \"20060102150405\"}}",
31     "ami_block_device_mappings": [
32       {
33         "device_name": "/dev/xvdb",
34         "encrypted": true,
35         "virtual_name": "ephemeral0"
36       },
37       {
38         "device_name": "/dev/xvdc",
39         "encrypted": true,
40         "virtual_name": "ephemeral1"
41       }
42     ],
43     "tags": {
44       "Name": "arvados-{{user `arvados_cluster`}}-compute",
45       "creation_date": "{{isotime \"20060102150405\"}}",
46       "packer": "true"
47     },
48     "run_tags": {
49       "Name": "packer-arvados-{{user `arvados_cluster`}}-compute-builder",
50       "creation_date": "{{isotime \"20060102150405\"}}",
51       "environment": "development"
52     },
53     "run_volume_tags": {
54       "Name": "packer-arvados-{{user `arvados_cluster`}}-compute-builder",
55       "creation_date": "{{isotime \"20060102150405\"}}",
56       "environment": "development"
57     }
58   }],
59   "provisioners": [{
60     "type": "file",
61     "source": "1078ECD7.asc",
62     "destination": "/tmp/1078ECD7.asc"
63   },{
64     "type": "file",
65     "source": "2649A5A9.asc",
66     "destination": "/tmp/2649A5A9.asc"
67   },{
68     "type": "file",
69     "source": "scripts/etc-cloud-cloud.cfg.d-07_compute_arvados_dispatch_cloud.cfg",
70     "destination": "/tmp/etc-cloud-cloud.cfg.d-07_compute_arvados_dispatch_cloud.cfg"
71   },{
72     "type": "file",
73     "source": "scripts/usr-local-bin-ensure-encrypted-partitions.sh",
74     "destination": "/tmp/usr-local-bin-ensure-encrypted-partitions.sh"
75   },{
76     "type": "file",
77     "source": "{{user `public_key_file`}}",
78     "destination": "/tmp/crunch-authorized_keys"
79   },{
80     "type": "shell",
81     "execute_command": "sudo -S env {{ .Vars }} /bin/bash '{{ .Path }}'",
82     "script": "scripts/base.sh",
83     "environment_vars": ["RESOLVER={{user `resolver`}}","REPOSUFFIX={{user `reposuffix`}}"]
84   }]
85 }