fix(build): install make in release builder for vendored openssl #76
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VA-73-builder-install-make"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The release image build fails compiling
vervain-agent:Cause
crates/vervain-agent/Cargo.tomlbuildsrusqlitewith thebundled-sqlcipher-vendored-opensslfeature, which compiles SQLCipher and OpenSSL from C source as part of the cargo build (intentional, so the binary has no system libsqlite3 / libcrypto runtime dependency). The vendored OpenSSL build runsperl ./Configureand thenmake depend. Thebuilderstage ofoci-build/release.Dockerfileinstalled onlypkg-config,ca-certificates, andgit, somakewas absent and the build aborted.perland a C compiler are already present in the base image (Configure succeeded; onlymakewas missing).Fix
Add
maketo theapt-get installlist in thebuilderstage, with a comment explaining why the vendored C build needs it.Verification
docker buildx build --file oci-build/release.Dockerfile --target export --output type=local,dest=out .now completes: rusqlite compiles, the release build finishes, and the 16.9MBvervain-agentbinary is exported.just pre-commitpasses.#VA-73