Hi,
Just added a cool docker that allows testing and evaluation of development codebase and features. It is called flex
, and will roll out an openemr docker from any specified public git repository.
For example:
go straight to labs.play-with-docker.com (you need to login to use this site; you need to create an account at https://hub.docker.com/ and then use these credentials to log into labs.play-with-docker.com). Then click ‘Add New Instance’ at the left and a new shell will open for you. Then copy/paste the four commands below:
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" --env "FLEX_REPOSITORY=https://github.com/openemr/openemr.git" --env "FLEX_REPOSITORY_BRANCH=master" --net mynet openemr/openemr:flex
Let this go for about 4-5 minutes. After that time, click on the ‘81
’ link at the top, and it will take you to phpmyadmin (root:root credentials) and you can see the openemr database there. And then click on the ‘80
’ link at the top, and it will take you to the OpenEMR login screen(admin:pass credentials). So you can now play around with any OpenEMR version from any git public repository anywhere you have access to a web browser!
To break down the above 4 commands above. First command sets up the network that the 3 dockers will use so they can communicate. Second command runs the mysql docker. Third command runs the phpmyadmin docker. Fourth command runs the openemr flex docker(and note it uses the flex
tag, which is what tells it to use the flex docker); note
the FLEX_REPOSITORY specifies the git repository and the FLEX_REPOSITORY_BRANCH specifies the branch in this git repository (the above example is taking the most recent development codebase from the official openemr git repository).
gotta love these dockers!
-brady