Sha256: 0ee07ade8e11953c5c4e91ec29ba790eb1592406152a214b0592ff97429165e3

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

#!/bin/bash

zone=$(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/zone)
export zone=${zone##*/}
export region=${zone%-*}
gcloud config set compute/zone ${zone}
gcloud config set compute/region ${region}
export project_id=`curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/project/project-id`

export ssh_key_path=$HOME/.ssh/bosh

bosh upload stemcell https://bosh.io/d/stemcells/bosh-google-kvm-ubuntu-trusty-go_agent?v=3263.8

bosh upload release https://bosh.io/d/github.com/concourse/concourse?v=2.5.0
bosh upload release https://bosh.io/d/github.com/cloudfoundry/garden-runc-release?v=1.0.3

export external_ip=`gcloud compute addresses describe concourse | grep ^address: | cut -f2 -d' '`
export director_uuid=`bosh status --uuid 2>/dev/null`

openssl rand -base64 16 > ~/common_password
cp ~/common_password ~/atc_password

export common_password=$(cat ~/common_password)
export atc_password=$(cat ~/atc_password)

bosh update cloud-config ~/gcp/cloud-config.yml

bosh deployment ~/gcp/concourse.yml
bosh deploy

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kite-0.0.4 tpl/gcp/scripts/03_deploy_concourse.sh
kite-0.0.3 tpl/gcp/scripts/03_deploy_concourse.sh