Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research ways to perform manual steps once on mongo docker container creation #5633

Open
LaszloKecskes opened this issue Mar 24, 2023 · 0 comments

Comments

@LaszloKecskes
Copy link
Contributor

If one uses the docker compose in Uwazi, the mongo container needs extra set up steps due to the replica set set-up (which is necessary for transactions introduced in the backend v2). Currently, our solution is to spin up an extra container that uses the mongo shell to perform the necessary steps (introduced in PR #5419).

The task is to research ways to do this better, in a less "hacky" way. Discussed options, as examples:

  • find a way to have the mongo container do it. This might not be possible.
  • have a script that does it. It's still manual step, but only one.
  • have a script that wraps docker compose up, then does the extra steps. The drawback is that the canonical "docker compose up" alone will not work.

This issue was decided on a tech call, and only affects development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants