End-to-end log pipeline for Linux hosts, per /docs/architecture.md: - proto: shared gRPC contract (agent <-> ingest), Go bindings checked in - agent: Rust, musl-targeted, journald/file sourcing, RFC5424 parser, mTLS gRPC client, no required config for the common case - ingest: Go, single binary with --mode server|consumer|all; gRPC front end forwards to Redpanda unchanged, consumer normalizes and batch-writes to ClickHouse with at-least-once delivery - storage: ClickHouse schema + a plain SQL-file migration runner - api: minimal SELECT-only query endpoint, plain REST (not gRPC+gateway yet -- see api/README.md) - web: SvelteKit static SPA, one query page - transport: Redpanda compose + topic provisioning - cli: sentryctl ping stub - hack/dev-certs: throwaway CA + cert generation for local mTLS - root docker-compose.yml + docs/phase-0-runbook.md tie it together Not yet run end-to-end against real Docker/ClickHouse/Redpanda -- see the runbook's caveats section before relying on this working as-is.
17 lines
586 B
Docker
17 lines
586 B
Docker
# Build context must be the repo root (sentry/), not agent/, since this
|
|
# needs both agent/ and proto/:
|
|
# docker build -f agent/Dockerfile -t sentry-agent .
|
|
|
|
FROM rust:1-alpine AS builder
|
|
RUN apk add --no-cache musl-dev protobuf-dev protobuf
|
|
WORKDIR /src
|
|
COPY proto ./proto
|
|
COPY agent ./agent
|
|
WORKDIR /src/agent
|
|
RUN rustup target add x86_64-unknown-linux-musl \
|
|
&& cargo build --release --target x86_64-unknown-linux-musl -p sentry-agent
|
|
|
|
FROM scratch
|
|
COPY --from=builder /src/agent/target/x86_64-unknown-linux-musl/release/sentry-agent /sentry-agent
|
|
ENTRYPOINT ["/sentry-agent"]
|