From d06bfefc40f9307a2f2a77074c22603bb02f3c0e Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs <93375423+prafull-opensignlabs@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:16:43 +0530 Subject: [PATCH] Update run-locally.md --- docs/docs/self-host/docker/run-locally.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/docs/self-host/docker/run-locally.md b/docs/docs/self-host/docker/run-locally.md index 7e98d8e31..288c04ccd 100644 --- a/docs/docs/self-host/docker/run-locally.md +++ b/docs/docs/self-host/docker/run-locally.md @@ -38,27 +38,31 @@ import ReactPlayer from 'react-player'; 3. Enable WSL in Docker Desktop by navigating to Settings > Resources > WSL Integration. Check the box and click on "Apply & Restart." Minimize Docker Desktop. ![docker](https://legadratw3d.ams3.cdn.digitaloceanspaces.com/Screenshot%202024-02-23%20201448.png) - - 4. Navigate to your desired location in Windows. Open PowerShell in that folder by holding Shift and right-clicking the mouse, then select "Open PowerShell window here." - 5. In the PowerShell window, type the following command: + 4. Now stop your local MongoDB instance by opening the Command Prompt as an administrator, and then execute the following command: + ``` + net stop mongodb + ``` + 5. Navigate to your desired location in Windows. Open PowerShell in that folder by holding Shift and right-clicking the mouse, then select "Open PowerShell window here." + 6. In the PowerShell window, type the following command: ``` git clone https://github.com/OpenSignLabs/OpenSign.git ``` and Hit Enter to clone the OpenSign project locally. - 6. Open the OpenSign folder with Visual Studio Code. Go to `apps > mongo > mongo-init.sh`. Change the file type from CRLF to LF, save the file, and close Visual Studio Code. + 7. Open the OpenSign folder with Visual Studio Code. Go to `apps > mongo > mongo-init.sh`. Change the file type from CRLF to LF, save the file, and close Visual Studio Code. ![docker](https://legadratw3d.ams3.cdn.digitaloceanspaces.com/Screenshot%202024-02-23%20175944.png) - 7. Open the Ubuntu/WSL terminal and use the command to navigate to the folder where you cloned the OpenSign project, e.g., cd mnt/c/testing/docker/OpenSign. - 8. Execute the following command to build the container image: + 8. Open the Ubuntu/WSL terminal and use the command to navigate to the folder where you cloned the OpenSign project, e.g., cd mnt/c/testing/docker/OpenSign. + + 9. Execute the following command to build the container image: ``` make build ``` This will initiate the process of creating the container image. It may take some time to complete. - 9. Refer below video for more specific details. - 10. For subsequent runs, open Docker and start the OpenSign container by clicking on the play button in the actions panel. + 10. Refer below video for more specific details. + 11. For subsequent runs, open Docker and start the OpenSign container by clicking on the play button in the actions panel. *Note: If you wish to incorporate our latest features into your Docker container, delete the existing OpenSign container and follow the steps again.*