Hello there. How does one go about updating their Docker Container of Open-EMR with patch 1 of version 7.0.3? I’m not finding any info on how to do it. Changing my Docker-Compose file of Open-EMR version “7.0.3” to “7.0.3.1” doesn’t work.
hi @Even_Pitch, is this an AWS cloud package?
Hi @stephenwaite, no, the Docker Container’s running on my Debian VM on my Macbook Pro. I was able to upgrade just fine from 7.0.2 after changing my Docker-Compose file version “7.0.2,” to “7.0.3.” I also changed the MariaDB version to, “11.6.2,” for the upgrade as well.
hi @Even_Pitch, wouldn’t mess with the docker compose file since there are dependencies that might affect the application.
Instead you copy in the patch 1 zip into the docker and unzip from the web root.
Linux
1. Move the patch file to the openemr web directory, then type 'unzip 7-0-3-Patch-1.zip', and confirm ok to copy over files.
2. Open web browser and go to http://your_server_name_or_ip/openemr/sql_patch.php
(this script will run automatically and patch the database)
(if you are using the Multisite Module, then skip step 2 and follow these instructions)
3. Delete the sql_patch.php file from the openemr web directory
Ok @stephenwaite I’ve been searching online to try and answer my additional questions and having a hard time. I’m still pretty new at this; hence, why I’m keeping all this locally on my laptop.
Anyway, the Openemr web directory: is this a folder in the Docker container? How do I find it? Looking through a write up on restoring OpenEMR Container from a backup (https://benmarte.com/blog/openemr-backup-restore), they showed how to copy the .tar.gz backup file into the container and extract it. Is this similar to what you’re talking about in step 1?
hi @Even_Pitch ,
To do this in dockers, check out these instructions:
openemr-devops/packages/lightsail at master · openemr/openemr-devops · GitHub
(don’t do the /etc/cron.daily/duplicity-backups
since this is not an aws docker)
Also to clarify, the automatic upgrades (where change the docker-compose to a new version) is only supported for the standard releases. The patches require the manual approach above.
1 Like
Thank you so much @brady.miller, I got it to work. It took some tweaking though, as the command, "OE_INSTANCE=$(docker ps | grep _openemr | cut -f 1 -d " “),” didn’t insert the docker ID into the commands that came after automatically. But, all I had to do was cut and paste the container ID right after wherever, “OE_INSTANCE” was listed in the script you had me use and I was able to complete the patching process.
I sincerely appreciate your help, as well as the help from @stephenwaite. Thank you both for your time.
2 Likes