3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

dockerコンテナにhubotをインストールする話

Posted at

前提事項

  • alpineのBaseImageを使っていること
  • Node.jsがインストールされていること

起きたこと

  • エラーが起きる

[/home/hubot # yo hubot
/usr/lib/node_modules/yo/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
```

どうしたか

  • dockerでのhubotに関する記事がありました
    http://qiita.com/tubone/items/11a7ceb3e7013139abab

  • alpineでも同じで、ユーザを作成した
    adduser myhubot

  • sudoersにそのユーザを入れた(これはいるのか?)
    vi /etc/sudoers

    ##
    ## User privilege specification
    ##
    root ALL=(ALL) ALL
    myhubot ALL=(ALL) ALL
    
  • /home/myhubot/hubot というディレクトリを作成して、"yo hubot"と入力

結果

とりあえず動いたのでこれでよしとする。このあとはhubotとslackをつなぐところ。。。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?