This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
rdm-dev:start [2024/10/15 13:04] torkhov |
rdm-dev:start [2025/09/25 08:37] (current) torkhov |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| == Inhalt == | == Inhalt == | ||
| - | [[rdm-dev: | + | * [[rdm-dev: |
| + | * [[rdm-dev: | ||
| + | * [[rdm-dev: | ||
| + | * [[rdm-dev: | ||
| + | * [[rdm-dev: | ||
| == Nützliches == | == Nützliches == | ||
| Line 26: | Line 29: | ||
| 1. Ensure you have mongo cli tools installed (Homebrew is your friend) | 1. Ensure you have mongo cli tools installed (Homebrew is your friend) | ||
| - | 2. call mongodump in any convenient way for you | ||
| - | 3. copy the folder with .bson and metadata into containers' | ||
| + | 2. call mongodump in any convenient way for you [[https:// | ||
| + | |||
| + | 3. save the mongodump conveniently. | ||
| + | |||
| + | 4. publish the database at port. for example, 27017 | ||
| + | |||
| + | 5. on the host machine run: | ||
| + | mongorestore \ | ||
| + | --uri=" | ||
| + | --db icgem-test \ | ||
| + | --dir / | ||
| + | |||
| + | 5. to automate the process each time a container is reloaded, you will need a .sh script. You mount the .sh script and the mongodump onto the container (this eliminates the necessity of step 3), then the script does step 4. | ||
| ---- | ---- | ||