Use suspend-aware BOOTTIME waits and owned-container cleanup without changing the workload. Reject missing coverage and preserve producer/report failures. Include runtime/helper regressions, constrained build-job support and live exec-guard crash safety. Document the failed live/idle gates without relaxing thresholds or claiming production acceptance.
59 lines
1.3 KiB
Docker
59 lines
1.3 KiB
Docker
FROM ubuntu:24.04 AS base
|
|
|
|
LABEL org.opencontainers.image.title="Strawberry Security Scanner"
|
|
LABEL org.opencontainers.image.description="Linux build/test container for Strawberry"
|
|
LABEL org.opencontainers.image.version="0.1.0"
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
bash \
|
|
ca-certificates \
|
|
ccache \
|
|
clang \
|
|
cmake \
|
|
curl \
|
|
g++ \
|
|
git \
|
|
llvm \
|
|
make \
|
|
meson \
|
|
ninja-build \
|
|
pkg-config \
|
|
python3 \
|
|
libbpf-dev \
|
|
libssl-dev \
|
|
libyara-dev \
|
|
nlohmann-json3-dev \
|
|
libcurl4-openssl-dev \
|
|
libarchive-dev \
|
|
libzstd-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV PATH="/usr/lib/ccache:${PATH}" \
|
|
CC="gcc" \
|
|
CXX="g++" \
|
|
CCACHE_DIR="/workspace/.ccache"
|
|
|
|
WORKDIR /workspace
|
|
|
|
# Self-contained Linux validation stage.
|
|
# Build with:
|
|
# docker build --target test -t strawberry-linux-test .
|
|
FROM base AS test
|
|
|
|
WORKDIR /src
|
|
COPY . /src
|
|
ARG BUILD_JOBS=2
|
|
|
|
RUN meson setup builddir -Denable_tests=true && \
|
|
meson compile -C builddir -j"${BUILD_JOBS}" && \
|
|
meson test -C builddir --num-processes "${BUILD_JOBS}" --verbose
|
|
|
|
# Interactive development/build image.
|
|
# Run with:
|
|
# docker build -t strawberry-linux-dev .
|
|
# docker run --rm -it -v "$PWD":/workspace strawberry-linux-dev
|
|
FROM base AS dev
|
|
|
|
CMD ["/bin/bash"]
|