-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make use of docker-slim #25
Comments
Do mumble have some dynamic lib load ? |
Idk - I just figured it might be worth a try to see if we can further reduce the image's size 🤷 |
FYI: I have worked on another solution (manually building a distroless container for mumble) which is still WIP (only tested it with SQLite so far) in my fork of this repo. I replaced the Once I have rebuilt it with the same feature set as the official build, I'll open a PR here. |
Yes, the database drivers are loaded at runtime. Running |
Did you guys consider using Alpine? Something as simple as this: FROM alpine:3.19
ENV USER murmur
ENV PORT 64738
RUN adduser ${USER} \
-DHs /sbin/nologin
RUN apk add --no-cache murmur
RUN mkdir /data && \
chown -R ${USER}:${USER} /data
COPY --chown=${USER}:${USER} ./murmur.ini /data/murmur.ini
VOLUME /data
EXPOSE ${PORT}/tcp
EXPOSE ${PORT}/udp
USER ${USER}
CMD [ "/usr/bin/murmurd", "-ini", "/data/murmur.ini", "-fg" ] generates sub 70 MiB image, pretty good. There are plenty of Alpine-based images on Dockerhub and on Github. And you can always have a separate tag for Alpine. |
Yes we did but there is no support for ZeroC Ice on Alpine (last time I checked at least) which the server uses as a RPC framework. |
@Krzmbrzl I see, indeed. For me it's an okay tradeoff to use a smaller image without ZeroC Ice. Separate tag like mumble is the first project I see that uses that zeroc. Even in Arch repos I see it being used only for mumble: https://archlinux.org/packages/extra/x86_64/zeroc-ice/ -> See It gotta be pretty legacy, all the cool kids use web interfaces now, right? Or unix sockets etc. Also docs for interfacing via pretty confusing, but that's another issue. |
Could be done, yeah but would make things for us here more complicated. Not sure this would really be worth it 🤔 |
See https://github.com/docker-slim/docker-slim
This seems to represent a viable option to further reduce our image's size.
The text was updated successfully, but these errors were encountered: