Read about OpenEMR's Response to the COVID-19 Pandemic at https://www.open-emr.org/covid19/

OpenEMR flex docker updated

Error log as of now, with docker pull, checking code Sniffer, and trying to run PHPcs

prondubuisi@prondubuisi:~/gitrepos/openemr$ docker pull openemr/openemr:flex
flex: Pulling from openemr/openemr
4167d3e14976: Already exists 
469936214094: Pull complete 
03b03ff4c0fe: Pull complete 
d7cd04c45e77: Pull complete 
f9b0d854cc58: Pull complete 
dcd33e797378: Pull complete 
6d54f9fe3c4b: Pull complete 
e594edbf5d57: Pull complete 
13cd30509ab0: Pull complete 
f6d4cd683391: Pull complete 
ba0c073ac83c: Pull complete 
3eb001cf870b: Pull complete 
Digest: sha256:5966a6006a5d04c3b04214906da8e2e8845e0f64481bf026f8f3eeda4df52528
Status: Downloaded newer image for openemr/openemr:flex
docker.io/openemr/openemr:flex
prondubuisi@prondubuisi:~/gitrepos/openemr$ docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'ls -al /root/.composer/vendor/squizlabs/php_codesniffer/bin/'
ls: /root/.composer/vendor/squizlabs/php_codesniffer/bin/: No such file or directory
prondubuisi@prondubuisi:~/gitrepos/openemr$ ocker ps | grep _openemr | cut -f 1 -d " ") sh -c 'cd openemr; php -d memory_limit=512M /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcbf -n --extensions=php,inc --standard=ci/phpcs.xml .'
bash: syntax error near unexpected token `)'
prondubuisi@prondubuisi:~/gitrepos/openemr$ docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'cd openemr; php -d memory_limit=512M /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcbf -n --extensions=php,inc --standard=ci/phpcs.xml .'
bash: syntax error near unexpected token `)'
prondubuisi@prondubuisi:~/gitrepos/openemr$ docker pull openemr/openemr:flex
flex: Pulling from openemr/openemr
Digest: sha256:5966a6006a5d04c3b04214906da8e2e8845e0f64481bf026f8f3eeda4df52528
Status: Image is up to date for openemr/openemr:flex
docker.io/openemr/openemr:flex
prondubuisi@prondubuisi:~/gitrepos/openemr$

need to do a “reset” to use the new docker

docker-compose down -v
docker-compose up -d

Also make sure you have no lingering shared volumes which will break things:

docker volume prune

Hello @brady.miller Is this the normal process whenever a push is made to docker. Consumes lots of Data!

Yep, but we usually don’t need to update the docker so much. Hopefully no more needed fixes in near future :slight_smile:

Even when we have the Alias feature coming soon :rofl: :rofl: :thinking: :thinking:

1 Like

yep,

Check out openemr/CONTRIBUTING.md at master · openemr/openemr · GitHub step 7; just added more tests (which means more aliases :slight_smile: ).

Wish lists on docker also includes a docker environment setting to turn on api and making the e2e testing work.

Still stuck in setting up OpenEMR after bringing down the volumes, Everything is up to date as confirmed by docker-compose up -d, but my interface is messed up for login and does not display anything after login. Our docker shiny commands also return

Could not open input file: /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcs
Gone ahead to create an Issue New docker commands not working, even after pulling in latest version of OpenEMR flex · Issue #3253 · openemr/openemr · GitHub , want to check if I am the only one having issues with the docker commands

You mentioned we need a docker environment setting to turn on API, how do you mean? like return a bearer token using Docker?

What if you try sudo docker pull openemr/openemr:flex ?

hi @RachelEllison, been trying to not use sudo docker, so can add your user to the group

 sudo usermod -aG docker $USER

logout and back in

Hi Stephen,

Can you explain the command a bit more? I’m working on an instructional video and want to make sure I can accurately convey the logic of how the command works and why to use it.

When you say log out do you mean from the computer? What if you’re developing on a virtual machine?

hi @RachelEllison, nice, after a user joins a group they have to logout of that terminal session and start a new terminal session, there’s a more elegant way am sure but keeps it simple

user@penguin:~$  sudo usermod -aG docker $USER
[sudo] password for user: 
user@penguin:~$ exit

Great, thanks. Just to clarify, why don’t we want to use sudo with docker? It seems to have been working out okay for me personally.

it’s to avoid collateral damage in case there’s a typo

Collateral damage to what exactly?

your system, here’s a quick find on the web

Got it. I’ll be sure to add that to the next video I’m working on.

thanks for putting that together @RachelEllison

hi @prondubuisi,

Regarding the API turn on, basically mean to turn it on by default (the API is turned off by default in Administration->Globals->Connectors->Enable OpenEMR REST API

You can see examples of how did this in travis:
openemr/.travis.yml at master · openemr/openemr · GitHub
(ignore the docker stuff in this line)

further edit:
the goal would be to have a docker environment setting where can turn the api on by default