Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

refactor: use MongoDB DB init script to initiate replica #147

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

shumkov
Copy link
Member

@shumkov shumkov commented Sep 4, 2020

Issue being fixed or feature implemented

A MongoDB docker container DB init script can be used to initiate a replica set that is more elegant than having an additional service in Docker Compose for that.

What was done?

Add the initiate_mongodb_replica.js DB init script to MongoDB container.

How Has This Been Tested?

Manually, running the start node command.

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shumkov shumkov added this to the v0.15 milestone Sep 4, 2020
@shumkov shumkov changed the title refactor: use MongoDB bootstrap script to initiate replica refactor: use MongoDB DB init to initiate replica Sep 4, 2020
@shumkov shumkov changed the title refactor: use MongoDB DB init to initiate replica refactor: use MongoDB DB init script to initiate replica Sep 4, 2020
Copy link
Member

@shuplenkov shuplenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@shumkov shumkov merged commit ea86738 into v0.15-dev Sep 4, 2020
@shumkov shumkov deleted the replica-set branch September 4, 2020 07:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants