2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-02-02 20:18:25 +00:00

Renamed the bash file

This commit is contained in:
vishalseshagiri 2017-07-20 12:51:33 +05:30
parent d9ec558dfb
commit ef99b8baee
2 changed files with 6 additions and 9 deletions

View File

@ -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)

View File

@ -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