Download datafusion_1/environment/Dockerfile from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 2.72 kB
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/datafusion_1/environment/Dockerfile
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/datafusion_1/environment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/datafusion_1/environment/Dockerfile
2.72 kB
| # LoLBench eval image: Apache DataFusion PR-16170 (metadata on literal values) | |
| FROM rust:1.87-bookworm | |
| RUN apt-get update && apt-get install -y --no-install-recommends git python3 protobuf-compiler libprotobuf-dev && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p /opt/lolbench/private /in /out /workspace | |
| WORKDIR /workspace | |
| ARG BASE_COMMIT=85f6621a6b1680b40d483a56b10ff3495861ece3 | |
| 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 | |
| WORKDIR /workspace/datafusion | |
| # Pre-warm public dependencies and base test-target binaries only. Hidden | |
| # LoLBench patches are mounted later into the verifier container. | |
| RUN cargo fetch && \ | |
| cargo test -p datafusion --test core_integration --no-run 2>&1 | tail -3 && \ | |
| cargo test -p datafusion --test config_from_env --no-run 2>&1 | tail -3 && \ | |
| cargo test -p datafusion --test tpcds_planning --no-run 2>&1 | tail -3 | |
| # 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_1 | |
| ENV LOLBENCH_SOURCE_SLUG=Apache-DataFusion_Issue-15797_PR-16170 | |