Update mongosh version#31
Conversation
I like this PR — it no longer requires Node to be installed, which is great since Node tends to receive frequent CVEs. But I never use the base image frolvlad/alpine-glibc , need review it first |
1bf8a7f to
d7cb92a
Compare
Supporting both amd64 and arm64 is sufficient. |
bba4767 to
66b8516
Compare
66b8516 to
7caefbf
Compare
|
the final size has no big difference. |
|
I am considering building our own Main reason is, the image (https://hub.docker.com/r/frolvlad/alpine-glibc/) doesn't mention anything about where it is built from (it's own Github or gitlab source code and automation cicd pipeline to check). It will be high risk to use this type of image as base images |
We also need adjust: The version is not managed in
|
|
Still need adjust.
Can we directly install glibc? |
This is the source repository: https://github.com/Docker-Hub-frolvlad/docker-alpine-glibc. I use it because they keep the alpine version and glibc updated. They also utilize dependabot, so we shouldn't have to worry too much about vulnerabilities. Please take a look. If after your review you still prefer to build from scratch, just let me know.
I will take a look at this |
In the last 2 commit, I just
|
If you don't like the complexity of frolvlad/alpine-glibc, I have an simpler solution such as wolfi-base from Chainguard. It is built to support glibc right away, very compact, and use the apk package manager like Alpine. I tested it and discovered it has a smaller footprint than frolvlad/alpine-glibc I included this solution in the last 2 commit. |
3b6bd4a to
72d60e5
Compare
72d60e5 to
c132cbc
Compare
let's stick on Alpine based image |
This isn't functioning, and glibc 2.35 is also outdated. If you truly want to continue with Alpine, can we use https://github.com/Docker-Hub-frolvlad/docker-alpine-glibc which currently running Alpine 3.22 and glibc 2.42 ? |
dfcfac7 to
a7b567c
Compare
a7b567c to
15c30e5
Compare
Upgrade the version of mongosh and all components of MongoDB Database Tools.
Note
The new version of mongosh is built with glibc, which is not natively supported by Alpine. You can work around this by using frolvlad/alpine-glibc base image, but it only supports amd64 and arm64.