-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.integration
More file actions
51 lines (38 loc) · 1.27 KB
/
Dockerfile.integration
File metadata and controls
51 lines (38 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Dockerfile for Server Integration Tests
# Multi-stage build for running InferaDB server in integration environment
FROM rustlang/rust:nightly-bookworm-slim AS builder
# Install build dependencies
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
curl \
clang \
libclang-dev \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
# Copy dependency manifests
COPY Cargo.toml Cargo.lock ./
COPY crates ./crates
# Build dependencies first (cached layer) with Ledger feature
RUN cargo build --release --bin inferadb-engine --features ledger
# Final stage - minimal runtime image
FROM debian:bookworm-slim
# Install runtime dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
libssl3 \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy built binary
COPY --from=builder /workspace/target/release/inferadb-engine /app/inferadb-engine
# Copy integration config file
COPY config.integration.yaml /app/config.yaml
# Expose server ports (HTTP and gRPC)
EXPOSE 8080 50051
# Health check
HEALTHCHECK --interval=5s --timeout=3s --retries=10 --start-period=15s \
CMD curl -f http://localhost:8080/health || exit 1
# Run server
CMD ["/app/inferadb-engine", "--config", "/app/config.yaml"]