mvertes / docker-alpine-mongo

MongoDB Dockerfile based on light alpine container
MIT License
189 stars 82 forks source link

Broken docker image uploaded recently #32

Open dacarley opened 5 years ago

dacarley commented 5 years ago

The most recent image of mvertes/alpine-mongo appears to contain Mongo 3.6.7, not Mongo 4.0.6, as expected.

image

For comparison, here's with the 4.0.5-0 tag:

image

mvertes commented 5 years ago

Ok, thanks for your report. It appears that the image is built from alpine:3.8, which contains mongo-3.6.7, instead of alpine:edge, which contains the last 4.0.6. Fixing it.

Svetomechc commented 5 years ago

https://pkgs.alpinelinux.org/packages?name=mongodb&branch=edge The package appears to be gone from edge repositories for good... any idea why?

Is there a new way to install latest version of MongoDB in Alpine?

russkel commented 5 years ago

@Svetomechc It has been moved to the nonfree repository https://github.com/alpinelinux/aports/tree/master/non-free/mongodb

Svetomechc commented 5 years ago

@russkel ok, thanks for the info! Never installed from there, though. Is there a guide?

russkel commented 5 years ago

@Svetomechc likewise. I believe you edit /etc/apk/repositories make a copy of one of the lines and s/community/nonfree/ ;) Let me know how you go.

Svetomechc commented 5 years ago

@russkel I just checked that the version there is actually the same I have already - 4.0.6 (guess I downloaded it right before the takedown, was luckier than @dacarley). So, to use the latest 4.0.10 I will probably have to download one of the official images based on Ubuntu, not Alpine. Sad.

russkel commented 5 years ago

@Svetomechc I was looking at updating the package but it has so many bloody patches. I also can't get mongo-cxx-driver to compile at the moment. It's all a bit of a mess, which is surprising given the perceived popularity of MongoDB.

Svetomechc commented 5 years ago

@russkel yeah, was really surprised too. And here's the radio silence when it went away from Alpine repos in our case. Literally no google results about this happening, you have to find out about this manually.

russkel commented 5 years ago

@Svetomechc I have had success in building the drivers. I will probably upstream the packages to aports, if that's any help to you.

Svetomechc commented 5 years ago

@russkel let me know if you do. Though didn't find any documentation on their site on how to use them.

russkel commented 5 years ago

@Svetomechc I am in the process of getting the drivers on edge testing, see https://github.com/alpinelinux/aports/pull/9244

As for using the testing repository, please see https://wiki.alpinelinux.org/wiki/Edge

Svetomechc commented 5 years ago

@russkel only drivers, not mongodb itself? And I use edge repositories already like so: echo "http://mirror.yandex.ru/mirrors/alpine/edge/testing" >> /etc/apk/repositories, but weren't we talking about aports, or is it the same thing?

russkel commented 5 years ago

@Svetomechc at this point yes. I will take a shot at the db itself at some point.

Yes that's all you need. Aports are the scripts used to build the packages in the repositories.