Last active
January 14, 2016 15:07
-
-
Save tubone24/760d569eaa2a6dc6106a to your computer and use it in GitHub Desktop.
dockerでhubotが動作する環境を作る ref: http://qiita.com/tubone/items/11a7ceb3e7013139abab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # service docker start | |
| # chkconfig docker on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@811aa8ed56dd:/# su myhubot | |
| myhubot@811aa8ed56dd:/$ cd ~ | |
| myhubot@811aa8ed56dd:/$ pwd | |
| /home/myhubot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| myhubot@811aa8ed56dd:/$ yo hubot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker pull node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker run -it --name "hubot1" node /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@811aa8ed56dd:/# npm install -g yo generator-hubot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@811aa8ed56dd:/# npm list -g generator-hubot yo | |
| npm info it worked if it ends with ok | |
| npm info using [email protected] | |
| npm info using [email protected] | |
| /usr/local/lib | |
| +-- [email protected] | |
| `-- [email protected] | |
| npm info ok | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json' You don't have access to this file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@811aa8ed56dd:/# #hubot1のbashです |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment