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

Init.js is only run when /data/db is empty #120

Open
minottic opened this issue Apr 8, 2024 · 1 comment
Open

Init.js is only run when /data/db is empty #120

minottic opened this issue Apr 8, 2024 · 1 comment
Assignees

Comments

@minottic
Copy link
Contributor

minottic commented Apr 8, 2024

from here, init.js is only run when /data/db is empty. This means that any change in the seed will not be loaded. We should either change the documentation or make it run everytime

@minottic
Copy link
Contributor Author

the prefererence would to re-seed, and a quick solution could be to simply not use the docker-entrypoint.d and run the init.js in the command block prepending the mongod command

Long term we should think of moving the seeding logic to the BEs services (not in the BE github, but rather in some init in the scicatlive BEs services as you said). This would also simplify the conditional mongo on the BE_VERSION which conceptually does not make too much sense for me

What I would find confusing of the init in the BE is to have an orphan dead container (as it completed), so we should also maybe check if containers can be automatically removed on completion

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

No branches or pull requests

2 participants