This is a bit fragile for users who might want to specify not only a custom --replSet, but possibly also other mongod arguments, especially if we end up needing to change the default image command at some point too (for whatever reason).
It'd be nice if this could be specified somehow via environment variable to override the current default value of joyent to avoid these issues (although that does get us into a bit of a catch-22 with https://github.com/joyent/containerpilot/issues/126 -- possibly most easily solved via a short wrapper script to run in front of/in place of mongod).
Currently, to modify the value of
--replSet
, one has to replace the entire image command, ala: https://github.com/autopilotpattern/mongodb/blob/a862b1d630d460280eb41264cd22160c40f1f83d/local-compose.yml#L5This is a bit fragile for users who might want to specify not only a custom
--replSet
, but possibly also othermongod
arguments, especially if we end up needing to change the default image command at some point too (for whatever reason).It'd be nice if this could be specified somehow via environment variable to override the current default value of
joyent
to avoid these issues (although that does get us into a bit of a catch-22 with https://github.com/joyent/containerpilot/issues/126 -- possibly most easily solved via a short wrapper script to run in front of/in place ofmongod
).