Difference between revisions of "Docker Installation Option"

From Rhomicom Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
= TO SETUP RHOMICOM ERP PROJECT =
 
= TO SETUP RHOMICOM ERP PROJECT =
 
# Download and Install Docker from [https://www.docker.com/ docker.com]
 
# Download and Install Docker from [https://www.docker.com/ docker.com]
# Download or Clone Rhomicom-ERP-Compose Project from [https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Compose Github]  
+
# Download or Clone Rhomicom-ERP-Compose Project from [https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Compose Github]
#* <syntaxhighlight lang="bash">
+
#*<syntaxhighlight lang="bash">
 
git clone https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Compose.git
 
git clone https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Compose.git
 
</syntaxhighlight>
 
</syntaxhighlight>
 
# Download [https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Web Rhomicom-ERP-Web Project files] and place folder contents directly into src/RHO_ERP_WEB
 
# Download [https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Web Rhomicom-ERP-Web Project files] and place folder contents directly into src/RHO_ERP_WEB
 +
#* <syntaxhighlight lang="bash">
 +
git clone https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Web.git
 +
</syntaxhighlight>
 
#* NB on linux you may have to run
 
#* NB on linux you may have to run
 
#* chmod -R 777 Rhomicom-ERP-Project as root
 
#* chmod -R 777 Rhomicom-ERP-Project as root

Revision as of 14:09, 6 December 2020

TO SETUP RHOMICOM ERP PROJECT

  1. Download and Install Docker from docker.com
  2. Download or Clone Rhomicom-ERP-Compose Project from Github
    • git clone https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Compose.git
  3. Download Rhomicom-ERP-Web Project files and place folder contents directly into src/RHO_ERP_WEB
    • git clone https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Web.git
    • NB on linux you may have to run
    • chmod -R 777 Rhomicom-ERP-Project as root
    • Or run the ./secure.sh script to grant appropriate folder permissions (A more secure alternative)
  4. Change Directory to api_image/code and run
  5. Change Directory to db/initdb/pgdb and download sample db file into it if needed
  6. Alternatively sample DB can be restored after running containers via terminal
    • First Login to the pgAdmin interface to view Databases available
    • docker exec -it rho-pgadmin sh
    • cd /var/lib/pgadmin/storage/info_rhomicom.com
    • psql -h rho-pgdb -p 5432 -U postgres -v -d rho_erp_db < 2_sample_database.sql OR Direct full restore of the sample backup file located at db/initdb/pgdb from the pgadmin front-end interface
  7. cd back to main Rhomicom-ERP-Project folder and Run
    • run ./start-rho_erp.sh
  8. Open http://localhost:8090 to access db via adminer
  9. Open http://localhost:8091 to access db via pgadmin
  10. Open http://localhost:8000 to run application
  11. To tear everything down Run
    • run ./stop-rho_erp.sh