- Use two separate //go:generate directives (Ja4Tc for tc_capture.c, Ja4Ssl
for uprobe_ssl.c) to avoid duplicate LICENSE symbol and multi-file clang issue
- Update loader.go to hold tcObjs/sslObjs separately with correct field names:
UprobeSslSetFd, UprobeSslReadEntry, UretprobeSslReadExit,
KprobeAccept4Entry, KretprobeAccept4Exit
- Add systemd-rpm-macros to all three RPM build stages (el8/el9/el10)
so that %{_unitdir} macro resolves correctly
- RPMs now build successfully for el8, el9, el10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
880 B
Docker
26 lines
880 B
Docker
# Development and test image for sentinel (was ja4sentinel)
|
|
# Build context: monorepo root (ja4-platform/)
|
|
# Usage: docker build -f services/sentinel/Dockerfile.dev -t sentinel-dev .
|
|
FROM golang:1.24-alpine
|
|
|
|
RUN apk add --no-cache git make libpcap-dev gcc musl-dev linux-headers
|
|
|
|
WORKDIR /build
|
|
|
|
# Copy Go workspace and shared module first for better layer caching
|
|
COPY go.work go.work.sum* ./
|
|
COPY shared/go/ja4common/ ./shared/go/ja4common/
|
|
|
|
# Copy service module descriptor then download deps
|
|
COPY services/sentinel/go.mod services/sentinel/go.sum* ./services/sentinel/
|
|
COPY services/correlator/go.mod services/correlator/go.sum* ./services/correlator/
|
|
|
|
WORKDIR /build/services/sentinel
|
|
RUN go mod download || true
|
|
|
|
# Copy full service source
|
|
COPY services/sentinel/ /build/services/sentinel/
|
|
|
|
# Default: run tests with race detector
|
|
CMD ["go", "test", "-race", "-v", "./..."]
|