Ambot Bundle
Ambot Bundle 是下一代采用的打包体系,依然在开发中,相关文档可能不全或过时
意义
Ambot Bundle 支持自动完成如下行为
- 附加最新版本的 ambot-service 并在集群中自动升级
- 将内嵌文件进行完整性验证并解压
- 解压后执行一个自定义脚本
Ambot Bundle 的第一个应用为集群升级,在该功能发布并稳定后,升级只需要提供一个单文件 Ambot Bundle 而无需提供一个 zip 并指导解压等
可变参数
内置 ambot-service
- 是否内置
- 是否自动安装
内置 tar 包
- 是否内置
- 默认解压路径
- 解压后执行脚本
生成方式
$ ambot-packager new-bundle -h
Usage:
ambot-packager new-bundle [flags]
Flags:
--auto-execute Auto execute command when executing the bundle (only if --with and --command is set) (default true)
--auto-extract Auto extract archive when executing the bundle (only if --with is set) (default true)
--auto-install Auto install ambot-service when executing the bundle (only if --with-installer is set) (default true)
--command string Command to execute after extracting archive (only if --with is set)
--default-prefix string Default prefix for extracting archive (only if --with is set)
-h, --help help for new-bundle
-n, --name string name for the bundle
-t, --save-to string Save the bundle to (default: $(pwd)/name.sh)
--with string Embed archive to the bundle
--with-installer Embed current version of ambot-service to the bundle (default true)
运行方式
生成的 Ambot Bundle 就是标准的 .sh 文件,可以在任何机器上(不依赖过往 ambot-service)直接执行