We are running into an issue running mongoimport
, as part of the data bootstrap of our tests, yet it works locally. For this reason we want to get the version of mongoimport, but that is not returning any build info:
$ mongoimport --version
mongoimport version: built-without-version-string
git version: built-without-git-spec
Go version: go1.11.5
os: linux
arch: amd64
compiler: gc
BTW the issue is when running mongoimport is that it just loops trying to import 0 bytes:
$ mongoimport -v -c coaches --uri=mongodb://mongo:27017/myco-test --type=json --file=test_data/mongo_dump/coaches.json
2022-09-20T18:03:36.687+0000 filesize: 142688 bytes
2022-09-20T18:03:36.687+0000 using fields:
2022-09-20T18:03:39.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:03:42.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:03:45.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:03:48.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:03:51.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:03:54.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:03:57.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:04:00.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
2022-09-20T18:04:03.688+0000 [........................] myco-test.coaches 0B/139KB (0.0%)
And in the .gitlab-ci.yml
file (some entries are just there while we work out why things are breaking):
- apt-get update
- apt-get install -y rsync
- apt-get install -y jq
- apt-get install -y mongo-tools
- mongoimport --version
- mongoimport --help
- mongoimport -v -c coaches --uri=mongodb://mongo:27017/myco-test --type=json --file=test_data/mongo_dump/coaches.json
Also, it would seem neither mongo
or mongosh
are provided by mongo-tools
, so I am not sure the right way to go about getting them. Wanting them to be able to use for connectivity testing.
Any help would be appreciated.