halfgaar / FlashMQ

FlashMQ is a fast light-weight MQTT broker/server, designed to take good advantage of multi-CPU environments
https://www.flashmq.org/
Open Software License 3.0
173 stars 24 forks source link

Fail to run as image #36

Closed jyvern closed 1 year ago

jyvern commented 1 year ago

I've cloned repository to build the most recent image : docker build . -t xxxx/flashmq:v230226.2208 and pushed it. When I restart my container with this new image I get the following error :+1: flashmq | /bin/flashmq: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory several times It's the same result if I try with the v1.2.1 code source

halfgaar commented 1 year ago

Hmm, Docker... libresolv is part of libc. One can't even rely on that?

I even tried switching to Debian Bullseye full for the base image, but that didn't fix it. Will be continued.

jyvern commented 1 year ago

I've succeeded with the Dockerfile of Pull requests #8 and added the following line :

COPY --from=build /usr/x86_64-linux-gnu/lib/libresolv.so.2 /usr/x86_64-linux-gnu/lib/libresolv.so.2

halfgaar commented 1 year ago

It was because the run image was very minimally composed and created as a separate stage. It's fixed now, in master.