docker build -t docker-hubot:latest .
docker run -d -e HUBOT_LOG_LEVEL=debug HUBOT_SLACK_TOKEN=<hubot_slack_token> -p 9999:9999 docker-hubot
コンテナにログイン
docker exec -it <container_id> bash
(コンテナ内) ssh public keyをgithubのdeploy keysに追加 deploy keysであればread-onlyでリポジトリにアクセスできるようになります。
cat .ssh/id_rsa.pub # これをgithubのdeploy keysに追加
(コンテナ内) hubotスクリプトをインポートする
git clone <repository url>
rm -rf /hubot/scripts
ln -s hubot-scripts/scripts /hubot/
@bot-name update