Running Mendix on-premise inside a Docker Image

0
Hello Developers,  I'm trying to run a Mendix project locally inside a Docker container. I have followed the following Mx guide: https://docs.mendix.com/deployment/docker/build-docker-image-from-mendix-project. However I have not been able to successfully run the image locally after building it with the guide.  My computer has Docker, Hyper-V and the Mendix buildpack installed/enabled.  I'm currently getting a 'Database KEYERROR'. When I try to run the image (docker run <image name>).  When I run the command from the readme.md (docker run -it -e ADMIN_PASSWORD=Password1!  -e DATABASE_ENDPOINT=postgres://username:password@host:port/mendix  mendix/mendix-buildpack:v1.2) The command line freezes, and I receive no feedback whatsoever. In the 2nd command I have changed the "username" and "password" to the MxAdmin variant. Please help :)   
asked
2 answers
0

Hi Jermaine, 

Did you replace mendix-buildpack:v1.2 with your own image name? Or did you name your docker image mendix-buildpack:v1.2 as well? 

Normally you create a docker image into your own namespace and not in the mendix namespace. something like ivo/mydockerimagename

is the database available you are referring to? Do you have the credentials of this database?

Gr

Erno

answered
0

Hi Jermaine, 

Did you change the credential that what you have?

like ,(docker run -it -e ADMIN_PASSWORD=(Mendix Adminstrator login password)!  -e DATABASE_ENDPOINT=postgres://username(Postgres UserName):password(Postgres password)@host(PostgresURL:port(ie.8080)/mendix(DataBase)  mendix/mendix-buildpack:v1.2(YourRepository :TagName) ).

It’s work for me.

answered