From ef99b8baee9e69d1e2536f488e6d7b0c5144034a Mon Sep 17 00:00:00 2001 From: vishalseshagiri Date: Thu, 20 Jul 2017 12:51:33 +0530 Subject: [PATCH] Renamed the bash file --- README.md | 11 +++++------ bash_script.sh => setup-frappe.sh | 4 +--- 2 files changed, 6 insertions(+), 9 deletions(-) rename bash_script.sh => setup-frappe.sh (87%) diff --git a/README.md b/README.md index 1414d08b..7256efd9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Docker_frappe +# frappe_docker Containerizing the frappe bench installation for a development environment @@ -19,14 +19,14 @@ docker-compose A step by step series of examples that tell you have to get a development env running -Installing Docker Community Edition +Installing Docker Community Edition ``` Follow the steps given in https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ The Docker version used by us is Docker version 17.06.0-ce, build 02c1d87 ``` -Installing docker-compose +Installing docker-compose ``` Follow the steps given in https://docs.docker.com/compose/install/ @@ -38,7 +38,7 @@ The docker-compose version used by us is docker-compose version 1.14.0, build c7 Steps to be followed to build and run the docker image are : ``` -1. Run the bash script bash_script.sh (Modify it to executable if not already given using the chmod +x command) with the command ./bash_script.$ +1. Run the bash script setup-frappe.sh (Modify it to executable if not already given using the chmod +x command) with the command ./setup-frappe.sh 2. After a few minutes the prompt will point to the App container with a root prefix to it (your current location is /home/frappe) 3. You will be inside /home/frappe/code folder 4. Make the bash_run_container.sh executable by chmod +x as in step 1 and run it with the command ./bash_run_container.sh @@ -68,6 +68,5 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md ## Acknowledgments -* Hat tip to anyone who's code was used - Pratik Vyas(https://github.com/pdvyas) +* Hat tip to anyone who's code was used - [Pratik Vyas](https://github.com/pdvyas) * Inspiration - [Rushabh Mehta](https://github.com/rmehta) - diff --git a/bash_script.sh b/setup-frappe.sh similarity index 87% rename from bash_script.sh rename to setup-frappe.sh index 49606c4b..0901c316 100755 --- a/bash_script.sh +++ b/setup-frappe.sh @@ -3,12 +3,10 @@ db_id=`docker ps | grep "mariadb" | awk '{print $1}'` db_ip=`docker inspect --format '{{ .NetworkSettings.Networks.docker_default.IPAddress }}' $db_id` app_id=`docker ps | grep docker_frappe | awk {'print $1'}` app_ip=`docker inspect --format '{{ .NetworkSettings.Networks.docker_default.IPAddress }}' $app_id` -echo 'export app_id='$app_id >> ~/.bashrc -source ~/.bashrc echo 'cd ../' >> ./bash_for_container.sh echo 'bench init frappe-bench && cd frappe-bench' >> ./bash_for_container.sh echo 'bench set-mariadb-host '$db_ip >> ./bash_for_container.sh -echo 'bench new-site site1' >> bash_for_container.sh +echo 'bench new-site site1' >> bash_for_container.sh echo 'bench --site site1 install-app erpnext' >> bash_for_container.sh echo 'bench start' >> bash_for_container.sh docker cp bash_for_container.sh $app_id:/home/frappe/code