Name: cc-uploader
Owner: Cloud Foundry
Description: CC Bridge component to enable Diego to upload files to Cloud Controller's blobstore
Created: 2015-08-12 19:20:00.0
Updated: 2016-12-16 00:59:14.0
Pushed: 2017-11-08 18:32:08.0
Size: 80
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Note: This repository should be imported as code.cloudfoundry.org/cc-uploader
.
CC Bridge component to enable Diego to upload files to Cloud Controller's blobstore
Uploading droplets & build artifacts via CC involves crafting a correctly-formed multipart request. For Droplets we also poll until the async job completes.
To specify a remote cloud controller to test against, use the following environment variables:
CC_ADDRESS the hostname for a deployed CC CC_USERNAME, CC_PASSWORD the basic auth credentials for the droplet upload endpoint CC_APPGUID a valid app guid on that deployed CC
ho "Generating CA"
rtstrap --depot-path . init --passphrase '' --common-name cc_uploader_ca_cn
ho "Generating server csr"
rtstrap --depot-path . request-cert --passphrase '' --common-name cc_cn --ip 127.0.0.1
ho "Generating server cert"
rtstrap --depot-path . sign cc_cn --CA cc_uploader_ca_cn
ho "Generating client csr"
rtstrap --depot-path . request-cert --passphrase '' --common-name cc_uploader_cn --ip 127.0.0.1
ho "Generating client cert"
rtstrap --depot-path . sign cc_uploader_cn --CA cc_uploader_ca_cn