我在一个数字海洋液滴(Ubuntu)上安装了rocket.chat和hubot,现在我正在尝试让hubot说话:
当我跑步时:
hubot -a rocketchat
我得到:
ERROR Cannot load adapter rocketchat - Error: Cannot find module 'hubot-rocketchat'
原因是什么?
这是我的船坞-复合。Here:
db:
image: mongo
volumes:
- ./data/runtime/db:/data/db
- ./data/dump:/dump
command: mongod --smallfiles
rocketchat:
image: rocketchat/rocket.chat:latest
environment:
- MONGO_URL=mongodb://db:27017/rocketchat
- ROOT_URL=https://xxxxxxxxx:3000
- Accounts_UseDNSDomainCheck=True
links:
- db:db
ports:
- 3000:3000
hubot:
image: rocketchat/hubot-rocketchat:v0.1.4 # rocketchat/hubot- rocketchat
environment:
- ROCKETCHAT_URL=http://xxxxxxx:3000
- ROCKETCHAT_ROOM=
- LISTEN_ON_ALL_PUBLIC=true
- ROCKETCHAT_USER=alicja
- ROCKETCHAT_PASSWORD=xxxxx
- BOT_NAME=alicja
- EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot- greetings, example.coffee
links:
- rocketchat:rocketchat
# this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
ports:
- 3001:8080编辑:
我使用docker重新安装了hubot和rocket.chat,现在看来bot连接到了火箭聊天(绿灯),但是它没有响应(尝试@botname帮助)。
再说一遍,这是我的码头-复合。here:
http://pastebin.com/rYrRGqfz
提前感谢您的帮助。
编辑2
好的。巨人起来了。我不得不改变:
image: rocketchat/hubot-rocketchat:v0.1.4至:
image: rocketchat/hubot-rocketchat:latest 在大型机器人中.yml的一部分
显然,当火箭聊天图像,火箭聊天,image_and,_hubot图像是不同的(杜赫.)
但我如何为大人物服务,从码头开始呢?例如。在哪里(文件夹位置),我应该运行npm安装脚本名来将它添加到hubot吗?.yml文件所在的同一文件夹?
我如何定制脚本?它们在哪里?
发布于 2016-10-06 12:16:01
上面有两个问题:
- Change your docker-compose.yml, where it says `- ROCKETCHAT_URL=xxx.xxx.xxx.xxx:3000` change it to `- ROCKETCHAT_URL=rocketchat:3000`. You should connect to hubot through the link in the containers.
- Indeed, you should be using `hubot-rocketchat:latest` with Rocket.Chat version above 0.37
- You have to map a volume from your host to your container. You can do this by adding `volumes:` to your docker-compose.yml. If you had your custom scripts inside a `scripts` folder, in the same directory as docker-compose.yml, you'd add it like this:
卷:-/脚本:/home/hubot/script
我的docker-compose.yml的样本可以在这里找到:http://pastebin.com/KKX0Kuma
https://stackoverflow.com/questions/39879968
复制相似问题