Difference between revisions of "Docker Installation Option"

From Rhomicom Wiki
Jump to navigation Jump to search
(Created page with " = TO SETUP RHOMICOM ERP PROJECT = # Install Docker # Download/Clone Rhomicom-ERP-Compose Project from Github # Download Rhomicom-ERP-Web Project files and place folder conte...")
 
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 
= TO SETUP RHOMICOM ERP PROJECT =
 
= TO SETUP RHOMICOM ERP PROJECT =
 
+
# Download and Install Docker from [https://www.docker.com/ docker.com] Depending on your OS, you need to install Docker in different ways, take a look into the official Website - https://docs.docker.com/engine/installation/ One of the advantages of using docker is that the host OS does not matter, the containers will work the same way on any platform.
# Install Docker
+
# Download or Clone Rhomicom-ERP-Compose Project from [https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Compose Github]
# Download/Clone Rhomicom-ERP-Compose Project from Github
+
#*<syntaxhighlight lang="bash">
# 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-Compose.git
 
+
</syntaxhighlight>
* NB on linux you may have to run
+
# 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
* chmod -R 777 Rhomicom-ERP-Project as root
+
#* <syntaxhighlight lang="bash">
* Or run the ./secure.sh script to grant appropriate folder permissions (A more secure alternative)
+
git clone https://github.com/rhomicom-systems-tech-gh/Rhomicom-ERP-Web.git
 
+
</syntaxhighlight>
# cd to api_image/code and run
+
#* NB on linux you may have to run
 
+
#* chmod -R 777 Rhomicom-ERP-Project as root
* 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
+
#* Or run the ./secure.sh script to grant appropriate folder permissions (A more secure alternative)
 
+
# Change Directory to api_image/code and run
# cd to db/initdb/pgdb and download sample db file into it if needed
+
#* npm install OR download [https://github.com/rhomicom-systems-tech-gh/Rhomicom-DB-Scripts/raw/master/node_modules.zip node_modules.zip] and unzip into api_image/code folder
 
+
# Change Directory to db/initdb/pgdb and download sample db file into it if needed
* NB: Sample DB can be downloaded from <nowiki>https://gitlab.rhomicom.com:8443/admin2/rhomicom-public-stuff/-/blob/master/2_sample_database.sql</nowiki>
+
#* NB: Sample DB can be downloaded from [https://gitlab.rhomicom.com:8443/admin2/rhomicom-public-stuff/-/blob/master/2_sample_database.sq 2_sample_database.sql]
 
 
 
# Alternatively sample DB can be restored after running containers via terminal
 
# Alternatively sample DB can be restored after running containers via terminal
 
+
#* First Login to the pgAdmin interface to view Databases available
* First Login to the pgAdmin interface to view Databases available
+
#* docker exec -it rho-pgadmin sh
* docker exec -it rho-pgadmin sh
+
#* cd /var/lib/pgadmin/storage/info_rhomicom.com
* 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
* 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
 
 
 
 
# cd back to main Rhomicom-ERP-Project folder and Run
 
# cd back to main Rhomicom-ERP-Project folder and Run
 
+
#* run ./start-rho_erp.sh
* docker-compose -p RHO-ERP-SET-1 up -d --remove-orphans
+
# Open http://localhost:8090 to access db via adminer
 
+
# Open http://localhost:8091 to access db via pgadmin
# Open <nowiki>http://localhost:8090</nowiki> to access db via adminer
+
# Open http://localhost:8000 to run application
# Open <nowiki>http://localhost:8091</nowiki> to access db via pgadmin
 
# Open <nowiki>http://localhost:8000</nowiki> to run application
 
 
# To tear everything down Run
 
# To tear everything down Run
 
+
#* run ./stop-rho_erp.sh
* docker-compose -p RHO-ERP-SET-1 down
 

Latest revision as of 21:15, 11 December 2020

TO SETUP RHOMICOM ERP PROJECT

  1. Download and Install Docker from docker.com Depending on your OS, you need to install Docker in different ways, take a look into the official Website - https://docs.docker.com/engine/installation/ One of the advantages of using docker is that the host OS does not matter, the containers will work the same way on any platform.
  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