Skip to content

Instantly share code, notes, and snippets.

@tubone24
Last active January 14, 2016 15:07
Show Gist options
  • Save tubone24/760d569eaa2a6dc6106a to your computer and use it in GitHub Desktop.
Save tubone24/760d569eaa2a6dc6106a to your computer and use it in GitHub Desktop.
dockerでhubotが動作する環境を作る ref: http://qiita.com/tubone/items/11a7ceb3e7013139abab
# rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
# yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# yum -y install docker-io
# service docker start
# chkconfig docker on
root@811aa8ed56dd:/# su myhubot
myhubot@811aa8ed56dd:/$ cd ~
myhubot@811aa8ed56dd:/$ pwd
/home/myhubot
myhubot@811aa8ed56dd:/$ yo hubot
# docker pull node
# docker images
$ docker run -it --name "hubot1" node /bin/bash
root@811aa8ed56dd:/# npm install -g yo generator-hubot
root@811aa8ed56dd:/# npm list -g generator-hubot yo
npm info it worked if it ends with ok
npm info using npm@3.3.12
npm info using node@v5.4.1
/usr/local/lib
+-- generator-hubot@0.3.1
`-- yo@1.6.0
npm info ok
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json' You don't have access to this file.
root@811aa8ed56dd:/# adduser myhubot
Adding user `myhubot' ...
Adding new group `myhubot' (1000) ...
Adding new user `myhubot' (1000) with group `myhubot' ...
Creating home directory `/home/myhubot' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for myhubot
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
root@811aa8ed56dd:/# #hubot1のbashです
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment