github.com/richardbowden/terraform@v0.6.12-0.20160901200758-30ea22c25211/website/packer.json (about) 1 { 2 "variables": { 3 "aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}", 4 "aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}", 5 "aws_region": "{{ env `AWS_REGION` }}", 6 "fastly_api_key": "{{ env `FASTLY_API_KEY` }}" 7 }, 8 "builders": [ 9 { 10 "type": "docker", 11 "image": "ruby:2.3-slim", 12 "commit": "true" 13 } 14 ], 15 "provisioners": [ 16 { 17 "type": "file", 18 "source": ".", 19 "destination": "/app" 20 }, 21 { 22 "type": "shell", 23 "environment_vars": [ 24 "AWS_ACCESS_KEY_ID={{ user `aws_access_key_id` }}", 25 "AWS_SECRET_ACCESS_KEY={{ user `aws_secret_access_key` }}", 26 "AWS_REGION={{ user `aws_region` }}", 27 "FASTLY_API_KEY={{ user `fastly_api_key` }}" 28 ], 29 "inline": [ 30 "apt-get -qq update", 31 "apt-get -yqq install build-essential curl git libffi-dev wget", 32 "apt-get -yqq install python-pip", 33 "pip install s3cmd", 34 "cd /app", 35 36 "bundle check || bundle install --jobs 7", 37 "bundle exec middleman build", 38 39 "/bin/bash ./scripts/deploy.sh" 40 ] 41 } 42 ] 43 }