Release / Build image (amd64) (push) Successful in 10m49s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 20m40s
CI / Format and clippy (push) Successful in 5m43s
CI / Tests (Linux) (push) Successful in 16m5s
CI / Dependency audit (push) Successful in 11s
CI / Docker image (build and smoke test) (push) Skipped
Release / Build image (arm64) (push) Successful in 7m34s
Release / Publish tags (push) Successful in 15s
Release / Gitea release (push) Skipped
Release / CLI (linux-aarch64) (push) Skipped
Release / CLI (linux-x86_64) (push) Skipped
Renames the whole project, after the harpy eagle: crates (xexeu-core/xexeu-cli -> harpia-core/harpia-cli), binary (xexeu -> harpia), admin token env var (XEXEU_ADMIN_TOKEN -> HARPIA_ADMIN_TOKEN), compose env vars (XEXEU_* -> HARPIA_*), container image (ciberfauna/xexeu -> ciberfauna/harpia) and the Gitea repository (ciberfauna/xexeu -> ciberfauna/harpia). Logo updated to the new brand artwork. All docs (EN/PT-BR), CI workflows, scripts, GUI strings and the openspec change history updated to match. BREAKING CHANGE: binary, crate, env var and image names all changed; existing .env files, scripts and deployments referencing the old xexeu/XEXEU names must be updated. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VAyr8cd6jzwpJM9cS1oGjy
44 lines
1.9 KiB
Docker
44 lines
1.9 KiB
Docker
# syntax=docker/dockerfile:1
|
|
#
|
|
# Harpia image: one binary covering both Compose roles (`serve` and `scanner`).
|
|
# The default image carries no external scanner; nmap lives in the optional
|
|
# variant harpia-scanner-nmap so the NPSL stays out of the standard binary.
|
|
|
|
# Build stage.
|
|
FROM rust:1.99-slim-trixie AS build
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /src
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY crates crates
|
|
COPY apps apps
|
|
COPY logo.png ./
|
|
RUN cargo build --release --locked -p harpia-cli
|
|
|
|
# Runtime stage: Debian slim, the binary and CA certificates for the optional
|
|
# outbound feed sync, release check and HEALTHCHECK. Runs unprivileged by
|
|
# default; the compose `scanner` service overrides the user to gain NET_RAW.
|
|
FROM debian:trixie-slim
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates curl libstdc++6 \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& groupadd --system --gid 10001 harpia \
|
|
&& useradd --system --uid 10001 --gid 10001 --home-dir /data --shell /usr/sbin/nologin harpia \
|
|
&& mkdir -p /data/harpia /data/sweeps \
|
|
&& chown harpia:harpia /data/harpia
|
|
COPY --from=build /src/target/release/harpia /usr/local/bin/harpia
|
|
LABEL org.opencontainers.image.title="Harpia" \
|
|
org.opencontainers.image.description="Continuous attack-surface and vulnerability auditing" \
|
|
org.opencontainers.image.source="https://git.lucasrguerra.dev.br/ciberfauna/harpia" \
|
|
org.opencontainers.image.licenses="MIT OR Apache-2.0"
|
|
ENV HARPIA_RUNTIME=container
|
|
USER harpia
|
|
WORKDIR /data
|
|
EXPOSE 8788
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
CMD curl -fsS http://127.0.0.1:8788/api/health >/dev/null || exit 1
|
|
ENTRYPOINT ["harpia"]
|
|
CMD ["serve", "--bind", "0.0.0.0:8788", "--config", "/config/harpia.toml", \
|
|
"--sweeps", "/data/sweeps", "--data-dir", "/data/harpia"]
|