Situation
I cloned a copy of openemr and put it on gh.
made changes to logos, in public/images/logos, made changes to branding options and appearance options in globals.inc/php, made some minor changes to some scss files, and added some custom user roles in /sites/default/documents/custom_menus/ and interface/main/tabs/menu/menus/
from there I cloned the openemr devops, and docker/7.0.3/Dockerfile I changed the source of the github pull to be the cloned copy I made of openemr. new image builds fine. I push that to dockerhub.
the issue is when I then try to docker-compose and using the image I have instead of openemr/openemr:7.0.3, it breaks and becomes unhealthy and doesnt work. If I change image to the openemr/openemr:7.0.3, it spins up just fine. I then tried changing mysqlconf.php $config = 0 (from 1), docker-compose now spins up and sends me to the installation wizard, and it connects to the database however cannot connect as user “openemr12345”.
my docker compose env vars are: for mysql: MYSQL_ROOT_PASSWORD: root,
for openemr: MYSQL_HOST: mysql, MYSQL_ROOT_PASS: , MYSQL_USER: openemr12345, MYSQL_PASS: openemr12345, OE_USER: openemr12345, OR_PASS: openemr12345
having root pass for mysqlrootpass in openemr as empty works, even tho its set to root ion the mysql.
OpenEMR Version
base image is 7.0.3
Browser:
I’m using: chrome
Operating System
I’m using: ubuntu vm
Search
Did you search the forum for similar questions? profusely
Logs
Did you check the logs? yup
Was there anything pertinent in them? Kinda more generic than I was hoping for tbh, issue is certainly a failure to connect mysql to the openemr image, and this is when I have the $config = 1 in sqlconfig.php
```
thrown in /var/www/localhost/htdocs/openemr/auto_configure.php on line 43
Couldn't set up. Any of these reasons could be what's wrong:
- You didn't spin up a MySQL container or connect your OpenEMR container to a mysql instance
- MySQL is still starting up and wasn't ready for connection yet
- The Mysql credentials were incorrect
mkdir: can't create directory '/tmp/php-file-cache': File exists
PHP Fatal error: Uncaught Exception: ERROR: unable to connect to database as root
in /var/www/localhost/htdocs/openemr/auto_configure.php:43
Stack trace:
#0 {main}
however when I have config = 0, I get to this point in the installation wizard and breaks:
I have tried a lot of iterations of changing these core values, in the installation wizard and otherwise. What am I missing? please help…
