diff --git a/setup/bootstrap.sh b/setup/bootstrap.sh index fade8e81c9..1d5df71e55 100644 --- a/setup/bootstrap.sh +++ b/setup/bootstrap.sh @@ -16,6 +16,7 @@ if [ "$(id -u)" != "0" ]; then fi # Base packages +apt-get dist-upgrade apt-get update apt-get install -y python-pip python-dev nginx curl build-essential pwgen pip install -U setuptools diff --git a/setup/packer.json b/setup/packer.json index 24763d36c3..f34f961e03 100644 --- a/setup/packer.json +++ b/setup/packer.json @@ -2,47 +2,27 @@ "variables": { "aws_access_key": "", "aws_secret_key": "", - "redash_version": "0.4.0.b589", - "image_version": "040b589" + "redash_version": "0.7.1.b1015", + "image_version": "071b1015" }, "builders": [ - { - "name": "redash-us-east-1", - "type": "amazon-ebs", - "access_key": "{{user `aws_access_key`}}", - "secret_key": "{{user `aws_secret_key`}}", - "region": "us-east-1", - "source_ami": "ami-fe7cc796", - "instance_type": "t2.micro", - "ssh_username": "ubuntu", - "ami_name": "redash-{{user `image_version`}}-us-east-1" - }, { "name": "redash-eu-west-1", "type": "amazon-ebs", "access_key": "{{user `aws_access_key`}}", "secret_key": "{{user `aws_secret_key`}}", "region": "eu-west-1", - "source_ami": "ami-d2ff50a5", + "source_ami": "ami-20cc9d57", "instance_type": "t2.micro", "ssh_username": "ubuntu", "ami_name": "redash-{{user `image_version`}}-eu-west-1" - }, - { - "type": "googlecompute", - "bucket_name": "redash-images", - "account_file": "account.json", - "client_secrets_file": "client_secret.json", - "project_id": "redash-bird-123", - "source_image": "debian-7-wheezy-v20141017", - "zone": "us-central1-a", - "image_name": "redash-{{user `image_version`}}" } ], "provisioners": [ { "type": "shell", "script": "bootstrap.sh", + "execute_command": "{{ .Vars }} sudo -E -S bash '{{ .Path }}'", "environment_vars": ["REDASH_VERSION={{user `redash_version`}}"] } ]