Difference between revisions of "Docker Installation Option"

From Rhomicom Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
# 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]
 
# 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
* 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
* Or run the ./secure.sh script to grant appropriate folder permissions (A more secure alternative)
+
*** Or run the ./secure.sh script to grant appropriate folder permissions (A more secure alternative)
 
# cd to api_image/code and run
 
# cd to api_image/code and run
 
*** npm install OR download <nowiki>https://github.com/rhomicom-systems-tech-gh/Rhomicom-DB-Scripts/raw/master/node_modules.zip</nowiki> and unzip into api_image/code folder
 
*** npm install OR download <nowiki>https://github.com/rhomicom-systems-tech-gh/Rhomicom-DB-Scripts/raw/master/node_modules.zip</nowiki> and unzip into api_image/code folder

Revision as of 23:31, 5 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
  3. Download Rhomicom-ERP-Web Project files and place folder contents directly into src/RHO_ERP_WEB
      • 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)
  1. cd to api_image/code and run
      • npm install OR download https://github.com/rhomicom-systems-tech-gh/Rhomicom-DB-Scripts/raw/master/node_modules.zip and unzip into api_image/code folder
  1. cd to db/initdb/pgdb and download sample db file into it if needed
      • NB: Sample DB can be downloaded from https://gitlab.rhomicom.com:8443/admin2/rhomicom-public-stuff/-/blob/master/2_sample_database.sql
  1. 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
  1. cd back to main Rhomicom-ERP-Project folder and Run
      • docker-compose -p RHO-ERP-SET-1 up -d --remove-orphans
  1. Open http://localhost:8090 to access db via adminer
  2. Open http://localhost:8091 to access db via pgadmin
  3. Open http://localhost:8000 to run application
  4. To tear everything down Run
      • docker-compose -p RHO-ERP-SET-1 down