catalog-dockerfiles
catalog-dockerfiles copied to clipboard
MongoDB - Missing Bash
Hey guys, I just noticed that the scripts in the mongodb config container are not working because /bin/bash is missing!
Hi @smith64fx
I don't think the scripts are not working because of /bin/bash because it is present in the MongoDB container (which is executing scripts).
But, I think it's not working because of this line: https://github.com/rancher/catalog-dockerfiles/blob/master/MongoDB/containers/0.1.0/mongodb-config/scaling.sh#L6
In my mongo-cluster containers MYIP
variable is empty and slaves are never declared because rs.add()
fail:
MongoDB shell version: 3.2.11 connecting to: 10.42.117.178:27017/test { "ok" : 0, "errmsg" : "FailedToParse: Empty host component parsing HostAndPort from \":27017\" for member:{ _id: 3.0, host: \":27017\" }", "code" : 93 }
If I change this line with:
MYIP=$(ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
Am I wrong ?
@galal-hussein could you help us ? :)
EDIT: There is the pull request #91 about this
Regards,