I am using a MacBook air(macOS Mojave 10.14) and I am unable to use docker(Docker version 18.09.0, build 4d60db4) to install OpenMRS SDK
I have followed the instructions on the page “https://wiki.openmrs.org/display/docs/Installing+OpenMRS+on+Docker”
I have a MySQL(5.6) instance running.
As soon as I run the command “docker run -it --rm -p 80:8080 openmrs/openmrs-reference-application-distro” it gives the following error
DB_CREATE_TABLES=false
DB_AUTO_UPDATE=false
MODULE_WEB_ADMIN=true
DEBUG=false
cat
/usr/local/tomcat/startup.sh: line 8: DB_HOST: unbound variable
Hello, what was the solution to this error, I am also experiencing the same.
C:\Users\hkaluuma>docker run -it --rm -p 8888:8080 openmrs/openmrs-reference-application-distro:demo
DB_CREATE_TABLES=false
DB_AUTO_UPDATE=false
MODULE_WEB_ADMIN=true
DEBUG=false
cat
/usr/local/tomcat/startup.sh: line 8: DB_HOST: unbound variable
Generally speaking, we recommend using docker-compose over bare Docker. However, you need to run the Docker command with -e DB_HOST=... where ... is the host name of a MySQL server that the Docker container can talk to. You may also need to specify -e DB_USERNAME=... and -e DB_PASSWORD=... to match your MySQL configuration.