Re: Downloading Buildpack Bits from Cloud Foundry


Matthew Sykes <matthew.sykes@...>
 

Try these:

https://github.com/cloudfoundry/cf-release/blob/master/jobs/cloud_controller_ng/spec#L220-L225



On Mon, Feb 15, 2016 at 6:44 AM, Rafal Radecki <radecki.rafal(a)gmail.com>
wrote:

Hi.

I tried both solutions and have some questions:
1) when I invoke on the host with cc mentioned wget I get:
===
# wget --server-response --http-user=user --http-password=pass
http://127.0.0.1:9022/v2/buildpacks/03ab7576-a181-4c46-9a0a-c4d61d262c2e/download
--2016-02-15 11:42:06--
http://127.0.0.1:9022/v2/buildpacks/03ab7576-a181-4c46-9a0a-c4d61d262c2e/download
Connecting to 127.0.0.1:9022... connected.
HTTP request sent, awaiting response...
HTTP/1.1 401 Unauthorized
Server: nginx
Date: Mon, 15 Feb 2016 11:42:06 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 100
Connection: keep-alive
Keep-Alive: timeout=20
X-VCAP-Request-ID: 48256908-2be7-472c-8606-84e110a754d8
X-Content-Type-Options: nosniff
Unknown authentication scheme.

Username/Password Authentication Failed.
===

What user/password should be used? I tried admin user and all other
options from my deployment manifest with no luck.

2) I found mentioned identifier of the buildpack in ccdb in table
buildpacks as guid_hash but what to do with this next? How to download the
blob?

BR,
Rafal.


--
Matthew Sykes
matthew.sykes(a)gmail.com

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.