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:
Install docker. Use the official documentation for your OS.
We need to test if docker is installed. First, read the getting started from the official documentation. Then run this simple "hello world" example.
docker run hello-worldIf the above test runs successfully that means docker has been correctly installed.
Now we will proceed to clone the busy repository into a local folder. Open command line (for windows: powershell, for mac: Terminal)
Reach the folder where you need to clone the busy repository using 'cd' command.
Type the code below for cloning the github repository in the current folder. If you have problems with cloning repository, use this simple tutorial.
git clone https://github.com/busyorg/busy.gitThis is how it looks in the powerhsell.

Now we need to build busy app through docker. Use the commands as below:
docker build busyOn 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.
I had following warnings:
warning store@1.3.20: The engine "browser" appears to be invalid. warning "antd > react-slick > [email protected]" has unmet peer dependency "jquery@>=1.8.0". warning " > [email protected]" has unmet peer dependency "prop-types@^15.5.4".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 1533ea4a2025This 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/>
Hey @shreyasgune I am @utopian-io. I have just super-voted you at 8% Power!
Suggestions https://utopian.io/rules
Achievements
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
Thank you for the contribution. It has been approved.
[utopian-moderator]