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
| $ ifconfig | |
| docker0 Link encap:Ethernet HWaddr 56:84:7A:FE:97:99 | |
| inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0 | |
| inet6 addr: fe80::5484:7aff:fefe:9799/64 Scope:Link | |
| ...... |
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
| $ git clone https://github.com/gmodecorp/gchat | |
| $ cd gchat |
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
| # dbコンテナ起動 | |
| $ docker run -d \ | |
| --name gchat_db_1 \ | |
| -p 27017:27017 \ | |
| mongo mongod --smallfiles | |
| # appコンテナ起動 | |
| $ docker run -d \ | |
| --name gchat_web_1 \ | |
| --link db:db \ |
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-compose up |
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 exec -it <chatサーバーのcontaier id or name> bash -l | |
| $ cd /code | |
| $ ./csbuild build |
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
| # mono packages | |
| RUN rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" && \ | |
| yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ && \ | |
| yum install -y mono-complete && yum clean all |
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
| $ curl -L -O https://nuget.org/nuget.exe |
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
| $ mono nuget.exe install <package name> |
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
| $ mono nuget.exe install WebSocketSharp -Pre | |
| $ mono nuget.exe install Newtonsoft.Json -Pre | |
| $ mono nuget.exe install mongocsharpdriver |
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
| $ supervisorctl restart chatapp |