Coder Social home page Coder Social logo

asdf-mongodb's Introduction

asdf-mongodb Build Status

MongoDB binary plugin for asdf

Limitations

This plugin downloads the most generic binary for the given version number of MongoDB. Which means:

  • The distribution does not include SSL encryption.
  • For Linux, there are binaries compiled for different distributions, but the binaries downloaded with this plugin is the generic Linux binary (Linux legacy binary), which means the binary may lack the performance optimizations included in distribution-specific binaries.

For this reason, this plugin is targeted for development environments. For production environments, please set up your environments manually.

Also, this plugin handles only the installation of the binary file. You will still need to set up your data directory (for example, mkdir -p /data/db, and setting permissions so that mongod can read it) manually. Please consult the Installation Guide of your environment for details.

Versioning Convention of MongoDB

MongoDB uses a versioning convention where:

  • Even-numbered builds are production releases (2.4.x, 2.6.x, 3.0.x)
  • Odd-numbered builds are development/unstable releases (2.5.x, 2.7.x, 3.1.x)
  • Minor version numbers indicate bugfix/security releases

All versions that can be downloaded from the server is included in the version list. In most of the cases, you will install the even-numbered production release with the highest minor version number.

Install

asdf plugin-add mongodb https://github.com/sylph01/asdf-mongodb.git

Use

Check asdf readme for instructions on how to install & manage versions of MongoDB.

asdf-mongodb's People

Contributors

baysao avatar blaze34 avatar flemaitre33 avatar jmromer avatar serradura avatar sylph01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asdf-mongodb's Issues

How to install latest mongodb?

Last stable release: 4.2.1 - Oct 18, 2019

$ asdf install mongodb 4.2.1 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    500      0 --:--:-- --:--:-- --:--:--   500

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Fix it, plz

Failed to Install Mongodb 4.2.3

Failed to Install Mongodb 4.2.3

โžœ asdf install mongodb 4.2.3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    201      0 --:--:--  0:00:01 --:--:--   201

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Failed to install Mongo < 4.2.11

This PR #9 updated the macOS url. However, old versions use the old url (at least 3.6.21 which is the one that my current project uses).

This is similar to #8

Doesn't work for mongodb versions >= 4.1.7

Hi folks,

While asdf list-all mongodb does show all the latest versions of mongo, asdf install mongodb 4.1.7 fails with the following error:

$ asdf install mongodb 4.1.7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    365      0 --:--:-- --:--:-- --:--:--   365

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Looking at the code, the download URL it generates looks like this:

https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.1.7.tgz

It seems that Mongodb have not released a generic linux package for versions >= 4.1.7. Perhaps its worth removing these versions from the list-all command? Or finding an alternate source for the .tgz files required.

Can't install mongo 4.0 and 3.6

This is the output I'm receiving during installation

$ asdf install mongodb 3.6.22                                                  14:15:35
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    409      0 --:--:-- --:--:-- --:--:--   409
tar: Error opening archive: Unrecognized archive format
$ asdf install mongodb 4.0.4                                               14:25:39
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    410      0 --:--:-- --:--:-- --:--:--   409
tar: Error opening archive: Unrecognized archive format

Installing newer versions (4.2.9 and 4.4.1) works though

$ asdf --version                                                           14:37:44
v0.8.0

Make asdf-mongodb production friendly.

@Stratus3D @sylph01 @baysao

This plugin downloads the most generic binary for the given version number of MongoDB. Which means:

The distribution does not include SSL encryption.
For Linux, there are binaries compiled for different distributions, but the binaries downloaded with this plugin is the generic Linux binary (Linux legacy binary), which means the binary may lack the performance optimizations included in distribution-specific binaries.

For this reason, this plugin is targeted for development environments. For production environments, please set up your environments manually.

Take a look at this bash script:

According to the readme.md of the package, this script has the ability to build mongoDB from source, so the binary & performance issues can be resolved.

I recently use asdf a lot, most of plugins are suitable for production, I guess it would be great if this plugin were more production friendly too.

How hard is it to integrate a similar workflow for asdf-mongodb plugin?

Can't install any version of mongodb, fastdl mongodb urls broken?

asdf install mongodb 5.3.1

download_url https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-5.3.1.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    355      0 --:--:-- --:--:-- --:--:--   354

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-5.3.1.tgz

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>4GM10T20MG1FSQ13</RequestId>
<HostId>VUnln117xLLzjc4VdqAj8tCWT037dKHl/PUTu3oT7SFud/TTHjdjV4XOp45zFDG2EydpR03NLTI=</HostId>
</Error>

I think the urls are broken?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.