supercharge / mongodb-github-action

Use MongoDB in GitHub Actions
MIT License
222 stars 46 forks source link

How can I Restore Dump from external location #40

Closed engahmed1190 closed 1 year ago

engahmed1190 commented 1 year ago

I will like to start the MongoDB container with a non-empty DB.

marcuspoehls commented 1 year ago

@engahmed1190 Hey Ahmed, please have a look at this issue: https://github.com/supercharge/mongodb-github-action/issues/39#issuecomment-1328006692

You can get an idea of restoring a MongoDB database dump from within the linked repository. This repository is an example of using a GitHub Actions runner with Ubuntu 22.04 which doesn’t have mongod command line tools installed. You may need an Ubuntu 20.04 runner with a mongodb cli command.

engahmed1190 commented 1 year ago

Thanks @marcuspoehls . I will use Ubuntu 20.4. Here is workaround

https://github.com/actions/runner-images/issues/6626#issuecomment-1327744126

marcuspoehls commented 1 year ago

Great, thanks for sharing 👍