mongodb-container icon indicating copy to clipboard operation
mongodb-container copied to clipboard

Configuration Server Run-Mode functionality

Open jbornemann opened this issue 8 years ago • 14 comments

This PR accomplishes two things:

1.) Setting up init folder structure to a more domain-driven design - this will help with segregating/sharing code across future run modes. (coming in other PRs). I've looked through both new mongodb/db structure, and init/pre-init structure to make sure nothing was missed, and it seems to be a mostly organizational change. The exception seems to be s2i - which I was not sure of the intent of this, so I didn't attempt to incorporate it. I might need someone with the backstory to add the commit adding that functionality. p.s why extend the image with s2i as opposed to just a plain docker build? I guess I would expect the tool to be used more exclusively in quick turn-around type uses; as opposed to extension of a middleware image - where I would expect iterations to be much more well defined, and steady.

2.) Added run-configsvr

Just a note, https://github.com/jbornemann/mongodb-on-os I plan on submitting to container-quickstarts as an example of how all of these run modes fit together on OpenShift in a sharded Mongo environment.

jbornemann avatar Oct 09 '17 17:10 jbornemann

Can one of the admins verify this patch?

centos-ci avatar Oct 09 '17 17:10 centos-ci

Can one of the admins verify this patch?

centos-ci avatar Oct 09 '17 17:10 centos-ci

Can one of the admins verify this patch?

rhscl-bot avatar Oct 09 '17 17:10 rhscl-bot

@omron93 this is probably a good first PR to start on, in terms of splitting up https://github.com/sclorg/mongodb-container/pull/255

jbornemann avatar Oct 09 '17 19:10 jbornemann

There are some new features which are good. But also there is a lot of changes (naming, structuring,...) which was done probably by writing code independently. It would be good to have reason for these changes - useless rewriting of code can bring only hidden bugs ;-)

The intent was to structure the code in a way such that functions are shard, or segregated based on run-mode - to easily find functions, and reduce duplication. With the introduction of new run-modes, code organization problems are uncovered that weren't previously there.

s2i

No strong feelings about having vs not having it. Personally, if I were a user wanting to extend the image; I would just extend it via Dockerfile, add scripts, and change the entrypoint - but that is just personal taste. To me, s2i is more of a tool for deploying applications on an existing image within a mostly pre-defined lifecycle (assemble, save-artifacts, run) - although, yes, you can extend it.

Also I have idea about config server

Sure, sounds good to me. Those two things seem to be likely to change together, so probably does make sense to consolidate.

rs_remove()

I delegate to @msurbey again for this one. No strong feelings.

jbornemann avatar Oct 10 '17 16:10 jbornemann

[test]

omron93 avatar Oct 11 '17 11:10 omron93

@omron93 just FYI, if it suites your fancy - feel free to help move these PRs forward. I likely won't have a whole lot of dedicated time to this.

jbornemann avatar Oct 16 '17 17:10 jbornemann

Can one of the admins verify this patch?

rhscl-bot avatar Nov 28 '17 15:11 rhscl-bot

Can one of the admins verify this patch?

centos-ci avatar Nov 28 '17 15:11 centos-ci

Can one of the admins verify this patch?

rhscl-bot avatar Feb 17 '18 10:02 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Feb 11 '19 20:02 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Mar 09 '19 14:03 rhscl-bot

Can one of the admins verify this patch?

rhscl-bot avatar Jul 19 '19 08:07 rhscl-bot

Can one of the admins verify this patch?

rhscl-automation avatar Sep 03 '20 08:09 rhscl-automation

mongodb container is not maintained any more in this org. closing.

hhorak avatar Apr 10 '24 11:04 hhorak