I want to work on the openemr source code and run it in a docker container. I am finding that the only way I can do this is to work inside the docker container using bash. The problem for me is that this is not an ideal way to develop. I would like work inside phpstorm on my host and have it as a volume inside the container. I am having trouble doing that.
-
When I work inside the OpenEMR Dockerfile shouldn’t I be able to pull down this code
git clone https://github.com/openemr/openemr.git --branch rel-500 --depth 1
-
Add this to the file to the openemr code
run_openemr.sh
-
Then add this to the Dockerfile
VOLUME ./openemr:/var/www/localhost/htdocs/openemr
-
Add these files to the Dockerfile directory
php.ini
openemr.conf
auto_configure.php
utilities/unlock_admin.php
utilities/unlock_admin.sh -
Then build the image and then run these commands
docker network create mynet docker run --detach --name mysql --env "MYSQL_ROOT_PASSWORD=root" --net mynet mysql --character-set-server=utf8 docker run --detach -p 81:80 --name phpmyadmin --env "PMA_HOST=mysql" --net mynet phpmyadmin/phpmyadmin docker run --detach -p 80:80 --name openemr --env "MYSQL_HOST=mysql" --env "MYSQL_ROOT_PASS=root" --net mynet myimage/openemr
Does this seem like the best approach to accomplish this or is there another way?