Docker is a service through which you can wrap your applications into containers and run them anywhere. Since the container is specific to the application, the application behaves exactly the same on any machine. Also, it makes it really easy to share these containers which include the application, the environment, and the runtime all in one. ### Steps to be followed: Busy Github repository provides dockerfile which makes it convenient to deploy using Docker. The steps followed are shown below: 1. Install docker. Use the official [documentation](https://docs.docker.com/engine/installation/) for your OS. 2. We need to test if docker is installed. First, read the [getting started](https://docs.docker.com/get-started/) from the official documentation. Then run this simple "hello world" example. ``` docker run hello-world ``` 3. If the above test runs successfully that means docker has been correctly installed. 4. Now we will proceed to clone the busy repository into a local folder. Open command line (for windows: powershell, for mac: Terminal) 5. Reach the folder where you need to clone the busy repository using 'cd' command. 6. Type the code below for cloning the *github* repository in the current folder. If you have problems with cloning repository, use this simple [tutorial](https://services.github.com/on-demand/github-cli/clone-repo-cli). ``` git clone https://github.com/busyorg/busy.git ``` 7. This is how it looks in the powerhsell.  8. Now we need to build busy app through docker. Use the commands as below: ``` docker build busy ``` 9. On successfull build you may get a massage as below: ``` Successfully built 1533ea4a2025 SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories. ``` Note that the no. *1533ea4a2025* is my image id. 10. I had following warnings: ``` warning store@1.3.20: The engine "browser" appears to be invalid. warning "antd > react-slick > slick-carousel@1.8.1" has unmet peer dependency "jquery@>=1.8.0". warning " > react-intl@2.4.0" has unmet peer dependency "prop-types@^15.5.4". ``` 11. Now run the app using the following command: ``` docker run -p 3000:3000 <docker image id> ``` In my case, I use: ``` docker run -p 3000:3000 1533ea4a2025 ``` 12. This is the error I get: ``` PS C:\Users\Mr. Shreyas\documents\codes\busy> docker run -p 3000:3000 1533ea4a2025 > busy@2.0.0 start /usr/src/app > cross-env NODE_ENV=production npm run run:server > busy@2.0.0 run:server /usr/src/app > nodemon --watch busy.server.js busy.server.js [nodemon] 1.12.1 [nodemon] to restart at any time, enter `rs` [nodemon] watching: busy.server.js [nodemon] starting `node busy.server.js ./server` module.js:544 throw err; ^ Error: Cannot find module '/usr/src/app/busy.server.js' at Function.Module._resolveFilename (module.js:542:15) at Function.Module._load (module.js:472:25) at Function.Module.runMain (module.js:682:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:613:3 [nodemon] app crashed - waiting for file changes before starting... ```<br /><hr/><em>Open Source Contribution posted via <a href="https://utopian.io/utopian-io/@shreyasgune/testing-busy-by-deploying-busy-through-docker">Utopian.io</a></em><hr/>
author | shreyasgune | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
permlink | testing-busy-by-deploying-busy-through-docker | ||||||||||||||||||||||||||||||||||||||||||||||||
category | utopian-io | ||||||||||||||||||||||||||||||||||||||||||||||||
json_metadata | "{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":64382195,"name":"busy","full_name":"busyorg/busy","owner":{"login":"busyorg","id":25360286,"avatar_url":"https://avatars0.githubusercontent.com/u/25360286?v=4","gravatar_id":"","url":"https://api.github.com/users/busyorg","html_url":"https://github.com/busyorg","followers_url":"https://api.github.com/users/busyorg/followers","following_url":"https://api.github.com/users/busyorg/following{/other_user}","gists_url":"https://api.github.com/users/busyorg/gists{/gist_id}","starred_url":"https://api.github.com/users/busyorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busyorg/subscriptions","organizations_url":"https://api.github.com/users/busyorg/orgs","repos_url":"https://api.github.com/users/busyorg/repos","events_url":"https://api.github.com/users/busyorg/events{/privacy}","received_events_url":"https://api.github.com/users/busyorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/busyorg/busy","description":"Blockchain-based social network where anyone can earn rewards 🚀","fork":false,"url":"https://api.github.com/repos/busyorg/busy","forks_url":"https://api.github.com/repos/busyorg/busy/forks","keys_url":"https://api.github.com/repos/busyorg/busy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/busyorg/busy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/busyorg/busy/teams","hooks_url":"https://api.github.com/repos/busyorg/busy/hooks","issue_events_url":"https://api.github.com/repos/busyorg/busy/issues/events{/number}","events_url":"https://api.github.com/repos/busyorg/busy/events","assignees_url":"https://api.github.com/repos/busyorg/busy/assignees{/user}","branches_url":"https://api.github.com/repos/busyorg/busy/branches{/branch}","tags_url":"https://api.github.com/repos/busyorg/busy/tags","blobs_url":"https://api.github.com/repos/busyorg/busy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/busyorg/busy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/busyorg/busy/git/refs{/sha}","trees_url":"https://api.github.com/repos/busyorg/busy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/busyorg/busy/statuses/{sha}","languages_url":"https://api.github.com/repos/busyorg/busy/languages","stargazers_url":"https://api.github.com/repos/busyorg/busy/stargazers","contributors_url":"https://api.github.com/repos/busyorg/busy/contributors","subscribers_url":"https://api.github.com/repos/busyorg/busy/subscribers","subscription_url":"https://api.github.com/repos/busyorg/busy/subscription","commits_url":"https://api.github.com/repos/busyorg/busy/commits{/sha}","git_commits_url":"https://api.github.com/repos/busyorg/busy/git/commits{/sha}","comments_url":"https://api.github.com/repos/busyorg/busy/comments{/number}","issue_comment_url":"https://api.github.com/repos/busyorg/busy/issues/comments{/number}","contents_url":"https://api.github.com/repos/busyorg/busy/contents/{+path}","compare_url":"https://api.github.com/repos/busyorg/busy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/busyorg/busy/merges","archive_url":"https://api.github.com/repos/busyorg/busy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/busyorg/busy/downloads","issues_url":"https://api.github.com/repos/busyorg/busy/issues{/number}","pulls_url":"https://api.github.com/repos/busyorg/busy/pulls{/number}","milestones_url":"https://api.github.com/repos/busyorg/busy/milestones{/number}","notifications_url":"https://api.github.com/repos/busyorg/busy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/busyorg/busy/labels{/name}","releases_url":"https://api.github.com/repos/busyorg/busy/releases{/id}","deployments_url":"https://api.github.com/repos/busyorg/busy/deployments","created_at":"2016-07-28T09:27:04Z","updated_at":"2017-11-09T15:19:33Z","pushed_at":"2017-11-10T03:03:59Z","git_url":"git://github.com/busyorg/busy.git","ssh_url":"git@github.com:busyorg/busy.git","clone_url":"https://github.com/busyorg/busy.git","svn_url":"https://github.com/busyorg/busy","homepage":"https://busy.org/","size":59628,"stargazers_count":112,"watchers_count":112,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"archived":false,"open_issues_count":107,"forks":39,"open_issues":107,"watchers":112,"default_branch":"new-design","score":93.96708},"pullRequests":[],"platform":"github","type":"bug-hunting","tags":["utopian-io","busy","docker"],"users":["1.3.20","1.8.1","2.4.0","2.0.0"],"links":["https://docs.docker.com/engine/installation/","https://docs.docker.com/get-started/","https://services.github.com/on-demand/github-cli/clone-repo-cli","https://res.cloudinary.com/hpiynhbhq/image/upload/v1510307549/vyquo1ornnr6zbatndov.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1510307549/vyquo1ornnr6zbatndov.png"]}" | ||||||||||||||||||||||||||||||||||||||||||||||||
created | 2017-11-10 10:21:24 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_update | 2017-11-10 10:21:24 | ||||||||||||||||||||||||||||||||||||||||||||||||
depth | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
children | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_payout | 2017-11-17 10:21:24 | ||||||||||||||||||||||||||||||||||||||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||||||||||||||||||||||||||||||||||||||
total_payout_value | 12.580 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
curator_payout_value | 4.808 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
pending_payout_value | 0.000 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
promoted | 0.000 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
body_length | 3,714 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_reputation | 4,924,803,411,962 | ||||||||||||||||||||||||||||||||||||||||||||||||
root_title | "Testing Busy by deploying busy through Docker" | ||||||||||||||||||||||||||||||||||||||||||||||||
beneficiaries |
| ||||||||||||||||||||||||||||||||||||||||||||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
percent_hbd | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
post_id | 19,947,200 | ||||||||||||||||||||||||||||||||||||||||||||||||
net_rshares | 9,126,295,170,088 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fabien | 0 | 513,871,265,692 | 100% | ||
anomaly | 0 | 370,754,183 | 1% | ||
jomeszaros | 0 | 57,261,238,756 | 100% | ||
msp-lovebot | 0 | 16,506,434,908 | 5% | ||
kona | 0 | 7,938,352,809 | 100% | ||
skolos | 0 | 463,074,238 | 100% | ||
milasteblova | 0 | 484,085,876 | 100% | ||
nuevhasa | 0 | 479,577,445 | 100% | ||
piaristmonk | 0 | 9,428,740,607 | 100% | ||
dreeshevin | 0 | 473,649,598 | 100% | ||
korrzunolga | 0 | 480,517,105 | 100% | ||
lyashc | 0 | 477,616,772 | 100% | ||
zhovtun | 0 | 474,370,172 | 100% | ||
utopian-io | 0 | 8,516,830,397,291 | 8% | ||
scipio | 0 | 290,721,299 | 100% | ||
monalisalove | 0 | 63,980,162 | 100% | ||
yazidbaihaqy | 0 | 400,393,175 | 100% |
Thank you for the contribution. It has been approved. [[utopian-moderator]][moderators] [moderators]: https://utopian.io/moderators
author | espoem |
---|---|
permlink | re-shreyasgune-testing-busy-by-deploying-busy-through-docker-20171110t141756041z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-11-10 14:17:54 |
last_update | 2017-11-10 14:17:54 |
depth | 1 |
children | 0 |
last_payout | 2017-11-17 14:17:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 134 |
author_reputation | 59,289,149,412,912 |
root_title | "Testing Busy by deploying busy through Docker" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,964,034 |
net_rshares | 0 |
### Hey @shreyasgune I am @utopian-io. I have just super-voted you at 8% Power! #### Suggestions https://utopian.io/rules - Average amount of information. Good but you can do better! - Utopian has detected 1 bot votes. I am the only bot you should love!! #### Achievements - I am a bot...I need someone spotting my bugs! - Much more informative than others in this category. Good job! - You have less than 500 followers. Just gave you a gift ;) - Seems like you contribute quite often. AMAZING! **Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
author | utopian-io |
---|---|
permlink | re-shreyasgune-testing-busy-by-deploying-busy-through-docker-20171110t182006287z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-11-10 18:20:06 |
last_update | 2017-11-10 18:20:06 |
depth | 1 |
children | 0 |
last_payout | 2017-11-17 18:20:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.020 HBD |
curator_payout_value | 0.006 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 646 |
author_reputation | 152,955,367,999,756 |
root_title | "Testing Busy by deploying busy through Docker" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,984,968 |
net_rshares | 13,025,446,279 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
shreyasgune | 0 | 13,025,446,279 | 100% |