Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Passing download parameters to bin commands through ENV variables #55

Merged
merged 1 commit into from
Jan 25, 2019
Merged

Passing download parameters to bin commands through ENV variables #55

merged 1 commit into from
Jan 25, 2019

Conversation

fedotov
Copy link
Contributor

@fedotov fedotov commented Jan 22, 2019

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

Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of points:

  • I don't wish to have .editorconfig in this PR, since not everybody uses this. Can you remove this please?
  • I will usually build the files myself, so please remove everything in built/
  • I like that you have reused a mongodb-download class, but you are conflating this with the actual PR itself. At the very least, I would like two separate commits

@fedotov
Copy link
Contributor Author

fedotov commented Jan 23, 2019

Sure, will do.
Thanks for quick response

@LoneRifle
Copy link
Contributor

Apologies, one more comment - env vars are usually ALL_CAPS_SNAKE_CASE

@fedotov
Copy link
Contributor Author

fedotov commented Jan 24, 2019

@LoneRifle please review

@LoneRifle LoneRifle merged commit f6307d0 into mongodb-js:master Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants