-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Advanced Installation | ||
===================== | ||
|
||
|
||
## Docker installation | ||
|
||
For Developers and Contricutors | ||
|
||
``` | ||
# Please comment the supporting_files/run.sh line to avoid download the geniesys.git | ||
git clone https://github.com/irusri/docker4geniecms.git | ||
cd docker4geniecms | ||
git submodule add -f https://github.com/irusri/genie.git | ||
docker build -t genie -f ./Dockerfile . | ||
docker run --rm -i -t -p "80:80" -p "3308:3306" -v ${PWD}/genie:/app -v ${PWD}/mysql:/var/lib/mysql -e MYSQL_ADMIN_PASS="mypass" --name genie genie | ||
cd genie | ||
``` | ||
|
||
When we need to commit changes, please go to `cd docker4geniecms/genie` folder. Never commit from `docker4geniecms` folder. Because it will add genie as a submodule. Incase you mistakenly pushed from `docker4geniecms` folder, please `cd docker4geniecms` and `git rm genie`. You can access MySQL using `mysql -u admin -pmypass -h localhost -P 3308` or using [phpMyAdmin](http://localhost/phpmyadmin). Some useful docker commands are as follows. | ||
``` | ||
# Must be run first because images are attached to containers | ||
docker rm -f $(docker ps -a -q) | ||
# Delete every Docker images | ||
docker rmi -f $(docker images -q) | ||
# To see docker process | ||
docker ps -l | ||
# To see or remove all volumes | ||
docker volume ls/prune | ||
# To run bash inside the running docker container | ||
docker exec -it 890fa15eeef6126b668f4b0fcb7a38b33eaff0 /bin/bash | ||
or | ||
docker attach 890fa15eeef6126b668f4b0fcb7a38b33eaff0 | ||
``` | ||
|
||
Now we can start the real development and push changes into genie. | ||
|
||
|
||
## Running from Command Line | ||
|
||
If you want to use PHP's built-in server (**not recommended**), just use following lines to install GenIE-Sys. This is only for the initial test installation, in order to make a full functional website you have to install Webbserver package such as MAMP or LAMP. | ||
|
||
``` | ||
git clone --recursive https://github.com/irusri/geniesys.git | ||
cd geniesys | ||
php -S localhost:3000 | ||
``` | ||
You should now be able to access GenIE-Sys at: ```http://localhost:3000``` in your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ | |
installation | ||
updates | ||
troubleshooting | ||
advanced_installation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters