mongodb-js / mongodb-prebuilt

Install MongoDB prebuilt package using npm https://npmjs.org/package/mongodb-prebuilt
ISC License
56 stars 50 forks source link

Passing download parameters to bin commands through ENV variables #55

Closed fedotov closed 5 years ago

fedotov commented 5 years ago

Main goal of the pr is to set MongoDB version and download folder instead of latest version of MongoDB and home directory to download to use through bin commands.

Environment variables to set mongodb download parameters: MONGODB_VERSION MONGODB_DOWNLOADDIR MONGODB_ARCH MONGODB_PLATFORM

Example export mongodb_downloadDir='./' mongodb_version=3.4.10 && mongod --port 27018 --dbpath ./.mongodb/data --logpath /dev/stdout

fedotov commented 5 years ago

Sure, will do. Thanks for quick response

LoneRifle commented 5 years ago

Apologies, one more comment - env vars are usually ALL_CAPS_SNAKE_CASE

fedotov commented 5 years ago

@LoneRifle please review