Closed frankgreco closed 7 months ago
@frankgreco would you mind sharing how you fixed it in case others encounter it?
Unfortunately, Debian Bookworm doesn't have the right version of boost by default so I used Debian Trixie. I gave Bookworm an honest try by trying to install all of the right packages but gave up when I needed to build the boost url dependency from source.
TBH, if you're going to rely on versions of boost that isn't even in the latest stable versions of OS's like Bookworm, I'd strongly recommend providing detailed documentation on how to unblock.
actually @cwaldren-ld I need to use bookworm. could you provide a minimal debian example (not using trixie since it's not stable yet).
Hi @frankgreco , I can try to help out here with a Debian example.
I get where you're coming from about depending on a recent (well, 2 years old) version of Boost. The intention was to use Boost as a one-stop shop as much as possible, rather than bringing in a bunch of other 3rd party dependencies.
The version of boost in bookworm is 4 years old. Again, not ancient history in C++ land, but missing a bunch of features. In any case, we are considering ways to relax our minimum boost version.
i'm okay with using the latest bookworm as long as it's possible. i've tried for two days to get it working but to no avail so any example would be nice
Good news, I got it working 👍
I'll have an example up shortly in the Lua repo using debian:bookworm as the base image.
It's not merged to main yet, but you can take a look at the Dockerfile in this PR: https://github.com/launchdarkly/lua-server-sdk/pull/101.
The key difference from ubuntu is these packages need to be installed:
libboost1.81-all-dev libboost-json1.81-dev libboost-url1.81-dev
sweet! let me try it out!
@cwaldren-ld great news; that works!!! I'm running into 👇🏼
[LaunchDarkly] backing off in (3) seconds due to Service not found [asio.addrinfo:-8]
ld_client = require('launchdarkly_server_sdk').clientInit(
'<redacted>',
0,
{
offline = false,
logging = {
basic = {
level = 'debug'
},
},
events = {
enabled = false,
},
}
)
but it could be unrelated
What operating system are you building the Docker image on? Exactly what docker command are you using to build the container?
Actually, I was purging libboost1.81-all-dev libboost-json1.81-dev libboost-url1.81-dev
after building but it looks like those are required at runtime. after removing the purge, I stopped getting that error.
I'm not getting an SSL error but I'll debug that separately.
Thanks for all of your help @cwaldren-ld! World class GitHub support 🔥
I can't seem to get past this error on Debian 👇🏼
I'm copying commands out of the example Dockerfile (for openresty) and it fails on this command 👇🏼