mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
Update packer configuration to create GCE image
This commit is contained in:
parent
8425698583
commit
f66fe5ff80
@ -7,18 +7,32 @@
|
||||
},
|
||||
"builders": [
|
||||
{
|
||||
"name": "redash-eu-west-1",
|
||||
"name": "redash-us-east-1",
|
||||
"type": "amazon-ebs",
|
||||
"access_key": "{{user `aws_access_key`}}",
|
||||
"secret_key": "{{user `aws_secret_key`}}",
|
||||
"region": "eu-west-1",
|
||||
"source_ami": "ami-6177f712",
|
||||
"region": "us-east-1",
|
||||
"source_ami": "ami-4dd2575b",
|
||||
"instance_type": "t2.micro",
|
||||
"ssh_username": "ubuntu",
|
||||
"ami_name": "redash-{{user `image_version`}}-eu-west-1"
|
||||
"ami_name": "redash-{{user `image_version`}}-us-east-1"
|
||||
},
|
||||
{
|
||||
"type": "googlecompute",
|
||||
"account_file": "account.json",
|
||||
"project_id": "redash-bird-123",
|
||||
"source_image_family": "ubuntu-1604-lts",
|
||||
"zone": "us-central1-a",
|
||||
"ssh_username": "arik"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"sleep 30"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"script": "ubuntu/bootstrap.sh",
|
||||
@ -33,5 +47,15 @@
|
||||
"type": "shell",
|
||||
"inline": "sudo rm /home/ubuntu/.ssh/authorized_keys || true"
|
||||
}
|
||||
],
|
||||
"post-processors": [
|
||||
{
|
||||
"type": "googlecompute-export",
|
||||
"only": ["googlecompute"],
|
||||
"paths": [
|
||||
"gs://redash-images/redash.{{user `redash_version`}}.tar.gz"
|
||||
],
|
||||
"keep_input_artifact": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user