[英]how to use apt-buildpack from cloudfoundry repo
The apt-buildpack is experimental and not yet intended for production use. apt-buildpack是实验性的,尚未用于生产用途。 I guess that's why also no documentation.
我想这就是为什么也没有文档的原因。
Creating container
Successfully created container
Downloading app package...
Downloaded app package (862.7K)
Warning: this buildpack can only be run as a supply buildpack, it can not be run alone
Failed to compile droplet: Failed to compile droplet: exit status 1
Destroying container
Exit status 223
Stopping instance abdfc8d0-699e-4834-9f2d-2b8aec218423
Successfully destroyed container
Can you give me example how to push cf-env
sample app and install for example rtorrent and/or openvpn .你能给我举例说明如何推送
cf-env
示例应用程序并安装例如rtorrent和/或openvpn 。 Is it possible to install gnome for testing purposes?是否可以安装gnome进行测试?
As far as usage goes it's pretty simple, you just need to include an Aptfile
in the root directory of your app.就使用而言,它非常简单,您只需要在应用程序的根目录中包含一个
Aptfile
。 That should contain a list of packages to install, one package on each line.那应该包含要安装的软件包列表,每行一个软件包。
Ex:前任:
$ cat Aptfile
ascii
rtorrent
openvpn
This message:这条信息:
Warning: this buildpack can only be run as a supply buildpack, it can not be run alone
警告:此构建包只能作为供应构建包运行,不能单独运行
Is telling you that the Apt buildpack only functions to supply binaries.告诉您 Apt buildpack 仅用于提供二进制文件。 It doesn't actually know how to run your app or any application.
它实际上并不知道如何运行您的应用程序或任何应用程序。 For more on the supply script, check out the docs here .
有关供应脚本的更多信息,请查看此处的文档。
The trick to making it work is that you need to use multi buildpack support.使其工作的技巧是您需要使用多构建包支持。 Instructions for doing that can be found here .
可以在此处找到执行此操作的说明。 This should work with most apps, but there's a simple example here .
这应该与大多数应用程序的工作,但有一个简单的例子在这里。
Once your app stages & starts, you can confirm that your packages were installed by running cf ssh apt-test -t -c "/tmp/lifecycle/launcher /home/vcap/app bash ''"
.一旦您的应用程序阶段和启动,您可以通过运行
cf ssh apt-test -t -c "/tmp/lifecycle/launcher /home/vcap/app bash ''"
来确认您的软件包已安装。 Anything that was installed should be on the path, but if you want to see where things are installed it'll be under the /home/vcap/deps/<buildpack-number>/
.任何已安装的东西都应该在路径上,但如果你想看看东西安装在哪里,它会在
/home/vcap/deps/<buildpack-number>/
。
That should be about it.那应该是关于它的。 Hope that helps!
希望有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.