The-Cataclysm-Preservation-Project / TrinityCore

Archived repository for WoW 4.3.4.15595. The project will be reworked for Cataclysm Classic as an official new branch of TrinityCore at https://github.com/TrinityCore/TrinityCore
GNU General Public License v2.0
239 stars 97 forks source link

Dockerfile new OpenSSL libraries #414

Closed Snify89 closed 10 months ago

Snify89 commented 10 months ago

Description:

Docker-Image doesn't find SSL libraries

Current behaviour:

bnetserver: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory worldserver: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

Expected behaviour:

Processes should find the libraries and start properly

Steps to reproduce the problem:

Pull docker image. use bnetserver/worldserver as entrypoint

Ovahlord commented 10 months ago

openssl 3 ships libssl-3 on their own and are not distributed by the build. so you gotta fix your environment.

Snify89 commented 10 months ago

openssl 3 ships libssl-3 on their own and are not distributed by the build. so you gotta fix your environment.

Thanks for the answer. I am not quite an expert. Are you suggesting to download and compile OpenSSL 3 into that docker image prior?

Is the current master branch compiled only with v3 support? What about 1.1? And isn't OpenSSL3 distributed with Ubunutu 22.04 (or any/some other distribution that can be used)?

Edit: Can't you leave the precompiled libraries in the image? Or add a docker instruction to download, make, install and link the libraries? Not sure about license issues at this point.

Edit2: tried installing/compiling openssl3 but got some libc issues.

funjoker commented 10 months ago

please retry after 1bae56ff8b626b963478fb35e4a44ada6c412597

Snify89 commented 10 months ago

please retry after 1bae56f

Thank you. I have just pulled the newest image and it seems to work now.

funjoker commented 10 months ago

Nice :) thanks for the feedback