When trying to use @vladgolubev's Docker images, I had the same problem as @antoineschaller in kadira-rma "
Error: couldn't initialize connection to host undefined, address is invalid"and realized that it was due to the kadira-rma/start.sh script requiring a Mongo replica set.
To allow it to work without a replica set, first create a directory structure as follows:
Then copy the contents of https://github.com/kadira-open/kadira-server/blob/master/kadira-rma/start.sh into your local start.sh file above and update it as follows:
1) Replace this:
2) Replace this:
Next, create a
Dockerfile under your
kadira-rma directory above to use your updated start.sh file as follows:
ADD start.sh /app
CMD [ "npm", "run", "start" ]
And then copy @vladgolubev's docker-compose.yml file into your PROJECT_ROOT directory and update it to build your own kadira-rma image from your Dockerfile rather than using his kadira-rma image as follows:
After making those changes, I was able to start up Kadira successfully by following @vladgolubev's 3 steps and the connection error in kadira-rma was fixed:
- Create MongoDB deployment on https://mlab.com/