Răsfoiți Sursa

build(pkg): add gRPC/protobuf dev packages to Docker base (fix trixie gRPCTargets.cmake)

Fszontagh 2 luni în urmă
părinte
comite
fd4069e163
1 a modificat fișierele cu 8 adăugiri și 2 ștergeri
  1. 8 2
      packaging/Dockerfile.base

+ 8 - 2
packaging/Dockerfile.base

@@ -5,9 +5,15 @@ ARG REPO_PASS
 ENV DEBIAN_FRONTEND=noninteractive
 
 RUN apt-get update && apt-get install -y --no-install-recommends \
-        ca-certificates curl gnupg cmake ninja-build g++ pkg-config \
-        nlohmann-json3-dev libspdlog-dev libssl-dev libsystemd-dev git \
+        ca-certificates curl gnupg cmake ninja-build g++ pkg-config git \
+        nlohmann-json3-dev libspdlog-dev libfmt-dev libssl-dev libsystemd-dev \
+        protobuf-compiler libprotobuf-dev libgrpc++-dev protobuf-compiler-grpc \
     && rm -rf /var/lib/apt/lists/*
+# Note: the gRPC/protobuf dev packages above are required so that the cmake
+# config shipped by libsmartbotic-db-client-dev can resolve `find_dependency(gRPC
+# CONFIG)`. Without protobuf-compiler-grpc, trixie's gRPCTargets.cmake references
+# plugin files that aren't present and find_package fails fatally (before the
+# pkg-config fallback). Mirrors smartbotic-database's build base.
 
 # Node 22 for the web UI build (vite 7 needs node >=20.19/22).
 RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \