/mongoexportsurgeon

An easy way to export documents associated with an ID from multiple collections. Surgically.

Primary LanguageShellMIT LicenseMIT

Mongo Export Surgeon

Docker Image CI

An easy way to export documents associated with an ID from multiple collections. Surgically.

Build

docker build -t tehkapa/mongoexportsurgeon .

Run

docker run --name mongoes -it \
  -e DBNAME=database \
  -e USERNAME=user \
  -e PASSWORD=password \
  -e HOST=mongo-server \
  -e AWSACCESSKEYID=AKxxxxxx \
  -e AWSSECRETACCESSKEY=bHxxxxxxxx \
  -e BUCKET=my-bucket \
  tehkapa/mongoexportsurgeon

or using .env file

docker run --name mongoes --env-file .env -it tehkapa/mongoexportsurgeon

You can pass organizationID on run command with --env ID=ac12cd3ef45 --env KEY=organization