# LoLBench eval image: apache/datafusion PR-20312 (extension type registry) FROM rust:1.85-bookworm ARG BASE_COMMIT=5fccac12cc6cfa2c10ce231f8486896f0e3fc115 RUN apt-get update && apt-get install -y --no-install-recommends \ git ca-certificates curl pkg-config libssl-dev cmake gcc g++ protobuf-compiler libprotobuf-dev \ && rm -rf /var/lib/apt/lists/* RUN mkdir -p /opt/lolbench/private /in /out /workspace WORKDIR /workspace RUN git clone --no-checkout https://github.com/apache/datafusion.git datafusion && \ cd datafusion && \ git fetch --no-tags origin ${BASE_COMMIT} && \ git checkout ${BASE_COMMIT} && \ git config user.email lolbench@local && \ git config user.name lolbench && \ if ! git diff --quiet || ! git diff --cached --quiet || [ -n "$(git ls-files --others --exclude-standard)" ]; then \ git add -A && git -c commit.gpgsign=false commit -q -m "LoLBench environment overlay"; \ fi && \ git tag -f base && git tag -f lolbench-base && \ git for-each-ref --format='%(refname)' refs/heads refs/remotes refs/tags | \ while read ref; do \ case "$ref" in refs/tags/base|refs/tags/lolbench-base) ;; *) git update-ref -d "$ref" ;; esac; \ done && \ ( git remote remove origin 2>/dev/null || true ) && \ rm -f .git/FETCH_HEAD && \ git reflog expire --expire=now --all && \ git repack -Ad && \ git prune --expire=now && \ git config --global --add safe.directory /workspace/datafusion # Warm cargo cache + build tests RUN cd /workspace/datafusion && \ cargo fetch && \ cargo build --tests -j 2 2>&1 | tail -10 # Harbor runtime adapter: keep the image public/agent-safe. RUN mkdir -p /opt/lolbench /logs/artifacts /logs/agent /logs/verifier /in /out && \ if ! id -u agent >/dev/null 2>&1; then useradd -m -s /bin/bash agent; fi COPY metadata.json /opt/lolbench/metadata.json COPY lolbench-submit /usr/local/bin/lolbench-submit RUN chmod +x /usr/local/bin/lolbench-submit && \ git config --global --add safe.directory /workspace/datafusion && \ if [ -d /workspace/datafusion/.git ]; then \ cd /workspace/datafusion && git ls-files --others --exclude-standard | sort > /opt/lolbench/base_untracked.txt; \ else \ : > /opt/lolbench/base_untracked.txt; \ fi && \ chown -R agent:agent /workspace/datafusion /logs USER agent WORKDIR /workspace/datafusion ENV LOLBENCH_INSTANCE_ID=datafusion_2 ENV LOLBENCH_SOURCE_SLUG=Apache-DataFusion_Extension-Type-Registry_PR-20312