Closed AshanCG closed 4 months ago
I'm closing this as it is a compilation issue, not a bug. You have modified the Dockerfile and changed the FDB version from 7.1. to 7.3. If you do this you'll also have to modify the crates/store/Cargo.toml
file and change:
`foundationdb = { version = "0.9.0", features = ["embedded-fdb-include", "fdb-7_1"], optional = true }
to:
foundationdb = { version = "0.9.0", features = ["embedded-fdb-include", "fdb-7_3"], optional = true }
Also make sure you are using the right client libraries for your platform architecture.
The solution was;
Add the foundationDB client library inside runtime image (final image) ;
- in Dockerfile.fdb
.....
FROM debian:buster-slim AS runtime
COPY --from=builder /app/target/release/stalwart-mail /usr/local/bin/stalwart-mail
RUN apt-get update -y && apt-get install -yq ca-certificates build-essential curl
RUN curl -LO https://github.com/apple/foundationdb/releases/download/7.1.0/foundationdb-clients_7.1.0-1_amd64.deb && \
dpkg -i foundationdb-clients_7.1.0-1_amd64.deb
....
Thank you @mdecimus for the confirmation revert feedback.
What happened?
Hi team,
We tried build stalwart with foundationdb support using https://github.com/stalwartlabs/mail-server/blob/v0.7.3/resources/docker/Dockerfile.fdb file and we get following error when starting container;
/usr/local/bin/stalwart-mail: error while loading shared libraries: libfdb_c.so: cannot open shared object file: No such file or directory
After further looking into issue, we found out that there is c library to be import in order to FoundationDB client to work correctly, thus getting above issue. Reference
We have used sample modified Dockerfile.fdb to complie but failed with below error;
Dockerfile.fdb
How can we reproduce the problem?
I can reproduce the problem by doing the following steps:
Version
v0.7.x
What database are you using?
FoundationDB
What blob storage are you using?
None
Where is your directory located?
None
What operating system are you using?
Docker
Relevant log output
Code of Conduct