创建未经授权的自定义构建包

Create custom buildpack un-authorized

我定义为 space 和我创建的 buildpack 的 org admin 和 ive zip,我想执行但出现错误

Server error, status code: 403, error code: 10003, message: You are not authorized to perform the requested action

我在里面有zip buildpack的文件夹里

C: 
 - myfolder
 -- custom_buildpack.zip   

在终端我在

c:/myfolder/ 

和运行下面的命令

cf create-buildpack custom_buildpack custom_buildpack.zip 12

我遇到了上面的错误,我该如何解决这个问题?

要能够创建或更新构建包,您必须是平台管理员。那是 this link.

处的第一个项目符号

Admin is a user role that has been assigned the cloud_controller.admin scope in UAA. An admin user has permissions on all orgs and spaces and can perform operational actions using the Cloud Controller API.

成为组织经理、space 经理或 space 开发人员是不够的。

除非您完全控制 CF 安装,否则您不太可能拥有足够的访问权限。

如果您没有访问权限,您可以通过为 cf push 指定 -b 参数或在 manifest.yml 文件中设置 buildpack: 来使用自定义构建包。此参数的值应该是构建包的 Git URL。 Public 在 Github 或 Bitbucket 上托管使这很容易,但您可以使用可从 CF 安装的暂存环境访问的任何服务。