Unable to install OpenMRS sdk using docker

developers-forum
Tags: #<Tag:0x00007fdb14a74d78>

(Raj Gupta) #1

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


(tendo kiiza Martyn) #2

@rajgupta why do you want to run it on top of Docker ?


(Raj Gupta) #3

well at first i thought it would make things easier…but now that i have read a bit more in the wiki i realise my mistake…sorry for the inconvenience


(Herbert Yiga) #4

you can also post your solution here so as to help others!!


(Raj Gupta) #5

as soon i figure it out myself i will surely do so


(tendo kiiza Martyn) #6

you are not an inconvenience at all ,we’re all here to support one another always feel free to ask, share and support…


(Seeranga sp) #7

I have same issue on my windows laptop. Any help appreciated.

error details: Prapakaran@DESKTOP-FJ3JHEA MINGW64 /c/opemmrs/repository/dockerbuild/docker $ docker run -it --rm -p 80:8080 openmrs/openmrs-reference-application-distro

  • 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

(CLIFF GITA) #8

i will be waiting for the solution coz am experiencing challenges with installing the OpenMRS sdk


(Daniel Kayiwa) #9

Does it work if you do not use the docker option?


(Cintia Del Rio) #10

I think there’s a little bit of confusion going on here.

The OpenMRS SDK is not a docker image and it’s not run from docker. https://wiki.openmrs.org/display/docs/OpenMRS+SDK It’s a maven plugin.

You can use the OpenMRS SDK to run OpenMRS platform and reference application (and dedicated mysql instance) using docker.

But indeed that documentation looks wrong. I updated https://wiki.openmrs.org/display/docs/Installing+OpenMRS+on+Docker with things that should work. Please update if that’s not correct.

I strongly recommend to use docker-compose instead of bare docker commands.


need help for production release