errbot:docker的脚本插件安装?

时间:2017-07-04 07:58:33

标签: errbot

我有一个Dockerfile来运行errbot,寻找一种脚本插件安装的方法。该文档似乎只列出了手动public extension UITextField { public func addToolbarInputAccessoryView(barButtonItems: [UIBarButtonItem], textColour: UIColor, toolbarHeight: CGFloat = 44, backgroundColour: UIColor = .white) { let toolbar = UIToolbar() toolbar.frame = CGRect(x: 0, y: 0, width: bounds.width, height: toolbarHeight) toolbar.items = barButtonItems toolbar.isTranslucent = false toolbar.barTintColor = backgroundColour toolbar.tintColor = textColour inputAccessoryView = toolbar } 方法。

有没有办法从git repo安装自动插件?

2 个答案:

答案 0 :(得分:0)

是的,你可以简单地使用BOT_EXTRA_PLUGIN_DIR配置参数并将你想要预装的任何插件放在那里。 https://github.com/errbotio/errbot/blob/master/errbot/config-template.py#L85

答案 1 :(得分:0)

如果已初始化Docker群集模式(即使仅在一个Docker主机上),则可以使用Docker Configs在运行时将文件拉入容器中,而不是将它们烘焙到Docker映像中。

对于您的特定用例,请查看Docker镜像https://github.com/swarmstack/errbot-docker,它完全符合您的需求。

相关问题