sylph01 / asdf-mongodb Goto Github PK
View Code? Open in Web Editor NEWMongoDB plugin for asdf version manager https://github.com/asdf-vm/asdf
License: MIT License
MongoDB plugin for asdf version manager https://github.com/asdf-vm/asdf
License: MIT License
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
I'd like to list this plugin in the asdf readme, but the plugin must pass asdf's plugin-test command first. Can you setup a travis CI build for the repository? It's really easy to do. Here is the .travis.yml file from my asdf-lua plugin: https://github.com/Stratus3D/asdf-lua/blob/master/.travis.yml
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
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.
problem
asdf list all mongodb
No compatible versions available (mongodb )
machine version
macOS Monterey 12.3.1
asdf's version: v0.10.2
MongoDB 6.0 Community Edition supports macOS 10.14 or later.
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
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?
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.