Jānis janhouse

threat-hunter-agent-builder (51e1be859866c2b51424753ede16336c417e9c15)

Published 2026-04-20 22:21:25 +00:00 by janhouse

Installation

docker pull git.janhouse.lv/janhouse/threat-hunter-agent-builder:51e1be859866c2b51424753ede16336c417e9c15
sha256:d63c70a479c269a05a0b7ab62da3db2a0ad6aec854a419fff90be05904bdb51e

About this package

HTTP service that compiles threat-agent binaries on demand

Image Layers

ADD alpine-minirootfs-3.23.3-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
ENV GOLANG_VERSION=1.24.13
ENV GOTOOLCHAIN=local
ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY /target/ / # buildkit
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
WORKDIR /go
RUN /bin/sh -c apk add --no-cache clang llvm libbpf-dev linux-headers git # buildkit
WORKDIR /agent
COPY agent/go.mod agent/go.sum ./ # buildkit
RUN /bin/sh -c go mod download # buildkit
COPY agent/*.go ./ # buildkit
COPY agent/collectors/ collectors/ # buildkit
COPY agent/protocol/ protocol/ # buildkit
COPY agent/heartbeat/ heartbeat/ # buildkit
COPY agent/exec/ exec/ # buildkit
COPY agent/tracee/ tracee/ # buildkit
RUN /bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /dev/null . || true # buildkit
COPY /agent-builder /usr/local/bin/agent-builder # buildkit
ENV AGENT_DIR=/agent
ENV OUTPUT_DIR=/agent-output
ENV PORT=3003
ARG GIT_SHA=51e1be859866c2b51424753ede16336c417e9c15
LABEL org.opencontainers.image.title=Threat Hunter Agent Builder
LABEL org.opencontainers.image.description=HTTP service that compiles threat-agent binaries on demand
LABEL org.opencontainers.image.source=https://git.janhouse.lv/janhouse/threat-hunter
LABEL org.opencontainers.image.revision=51e1be859866c2b51424753ede16336c417e9c15
EXPOSE [3003/tcp]
HEALTHCHECK &{["CMD-SHELL" "wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/health || exit 1"] "10s" "3s" "5s" "0s" '\x03'}
ENTRYPOINT ["/usr/local/bin/agent-builder"]

Labels

Key Value
com.docker.compose.project threat-hunter
com.docker.compose.service agent-builder
com.docker.compose.version 5.1.1
org.opencontainers.image.description HTTP service that compiles threat-agent binaries on demand
org.opencontainers.image.revision 51e1be859866c2b51424753ede16336c417e9c15
org.opencontainers.image.source https://git.janhouse.lv/janhouse/threat-hunter
org.opencontainers.image.title Threat Hunter Agent Builder
Details
Container
2026-04-20 22:21:25 +00:00
2
OCI / Docker
linux/amd64
342 MiB
Versions (8) View all