Skip to content

Instantly share code, notes, and snippets.

@drnic
Last active May 19, 2019 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drnic/777e344bb34e32e102b67f2eb2e79bc1 to your computer and use it in GitHub Desktop.
Save drnic/777e344bb34e32e102b67f2eb2e79bc1 to your computer and use it in GitHub Desktop.
Upgrade cfdev 0.0.15 to support sidecars (capi 1.79.0)
#!/bin/bash
export BOSH_DEPLOYMENT=${CF_DEPLOYMENT:-cf}
# https://github.com/cloudfoundry/cf-deployment/blob/v7.11.0/operations/use-compiled-releases.yml#L1-L9
capi_update=$(cat <<-YAML
- type: replace
path: /releases/name=capi/url
value: https://storage.googleapis.com/cf-deployment-compiled-releases/capi-1.79.0-ubuntu-xenial-250.29-20190411-165538-039089481.tgz
- type: replace
path: /releases/name=capi/version
value: 1.79.0
- type: replace
path: /releases/name=capi/sha1
value: 4272f201eae09063efc959444a9ed44e4adfb412
YAML
)
bosh -n deploy <(bosh int <(bosh manifest) -o <(echo "$capi_update"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment