Skip to content

The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.

11.6 KB
Raw Blame
# robodojo: RoboDojo's simulation benchmark (github.com/RoboDojo-Benchmark/RoboDojo @ cb2a37d, MIT) on Isaac Sim 5.1.0 +
# RoboDojo's Isaac Lab fork (2.3, @ afca7b0) + its cuRobo fork (@ d17b54c), torch 2.7.0+cu128, following RoboDojo's
# scripts/install.sh step by step, every Python package then set to images/robodojo/requirements.lock; RoboDojo's assets
# (Apache-2.0, Hugging Face dataset RoboDojo-Benchmark/RoboDojo at a pinned revision, ~41 GB) baked in under
# /opt/RoboDojo/Assets. Isaac Sim needs an RTX-class GPU even headless; cuRobo needs CUDA.
# Every RoboDojo task's Dockerfile starts with this recipe (scripts/task_conventions.py normalize copies it there) and builds
# it when the runner cannot pull ghcr.io/mll-lab-nu/efe-private:robodojo-<VERSION>, the same recipe built with inline cache.
# The recipe needs no build context: the repository's files come by URL at a pinned commit, each checked by its sha256
# (a commit a tag keeps reachable; a change to requirements.lock, web_assets.txt or localize_assets.py = a new commit and
# checksum here + a new VERSION).
# Building it accepts the NVIDIA Isaac Sim / Omniverse licence (images/robodojo/BUILD_ONLY).
FROM docker.io/nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04@sha256:ad6d59a3bbf3e82c1c849c9ac09cfc2a3e0bbb8655042fd899be6681b3fe2a85 AS robodojo-base
ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 UV_LINK_MODE=copy \
    NVIDIA_DRIVER_CAPABILITIES=all VK_DRIVER_FILES=/etc/vulkan/icd.d/nvidia_icd.json \
    VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json \
    OMNI_KIT_ACCEPT_EULA=YES ACCEPT_EULA=Y OMNI_KIT_ALLOW_ROOT=1 PRIVACY_CONSENT=N \
    CUDA_HOME=/usr/local/cuda FORCE_CUDA=1 TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6;8.9;9.0+PTX" MAX_JOBS=8
# system packages from the Ubuntu archive as it was on 2026-10-01 (snapshot.ubuntu.com); cuRobo builds CUDA extensions (devel base)
RUN rm -f /etc/apt/sources.list.d/cuda*.list && \
    sed -i -e 's|http://archive.ubuntu.com/ubuntu/|http://snapshot.ubuntu.com/ubuntu/20261001T000000Z/|' \
           -e 's|http://security.ubuntu.com/ubuntu/|http://snapshot.ubuntu.com/ubuntu/20261001T000000Z/|' /etc/apt/sources.list && \
    apt-get -o Acquire::Retries=10 update && apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
      curl ca-certificates git git-lfs ffmpeg cmake ninja-build pkg-config build-essential \
      libvulkan1 libegl1 libgl1 libglvnd0 libglu1-mesa libx11-6 libxt6 libxext6 libxrender1 libxi6 libxrandr2 libxinerama1 \
      libxcursor1 libsm6 libice6 libgomp1 libglib2.0-0 libxkbcommon0 libxkbcommon-x11-0 libfontconfig1 libfreetype6 && \
    rm -rf /var/lib/apt/lists/* && mkdir -p /usr/share/glvnd/egl_vendor.d && \
    printf '{\n    "file_format_version" : "1.0.0",\n    "ICD" : {\n        "library_path" : "libEGL_nvidia.so.0"\n    }\n}\n' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
COPY --from=ghcr.io/astral-sh/uv:0.13.0@sha256:cdc6093146eb3ff6a40107b38f008b789e050e77ad87865e381d9917da55a168 /uv /uvx /root/.local/bin/
ENV PATH="/opt/venv/bin:/root/.local/bin:${PATH}" VIRTUAL_ENV=/opt/venv
RUN uv python install 3.11.17 && uv venv --seed -p 3.11.17 /opt/venv
# RoboDojo and its three submodules at the pinned commits
RUN git clone -q https://github.com/RoboDojo-Benchmark/RoboDojo.git /opt/RoboDojo && cd /opt/RoboDojo && \
    git checkout -q cb2a37d58dbbeb2777b0c2b30e97ecb8ab91095c && \
    git submodule update -q --init --depth 1 third_party/IsaacLab third_party/curobo XPolicyLab && \
    test "$(git -C third_party/IsaacLab rev-parse HEAD)" = afca7b09d60d8beb9c1cb28b43066499940b969b && \
    test "$(git -C third_party/curobo rev-parse HEAD)" = d17b54ce32cba095c0b000c4c58777075d11de0e && \
    test "$(git -C XPolicyLab rev-parse HEAD)" = 53c5da5a01bc720d1cf0e6ab6ed212e8cef0eda2
# RoboDojo's assets (Robots, Object, Material, Room, Background, Sensor, Traj, Eval_Layout; Apache-2.0) at the dataset revision
# RoboDojo's eval layouts were checked against, anonymously from the Hugging Face dataset's git LFS (batched requests: the
# per-file API rate-limits anonymous clients), one folder at a time so that the LFS store never holds more than one folder
RUN git init -q /tmp/hf && cd /tmp/hf && git remote add origin https://huggingface.co/datasets/RoboDojo-Benchmark/RoboDojo && \
    git sparse-checkout set Assets && GIT_LFS_SKIP_SMUDGE=1 git fetch -q --depth 1 origin 35efbc7dedfdbeeb6e95fb749bd885d73d483e41 && \
    GIT_LFS_SKIP_SMUDGE=1 git checkout -q FETCH_HEAD && test "$(git rev-parse HEAD)" = 35efbc7dedfdbeeb6e95fb749bd885d73d483e41 && \
    for d in Assets/*/; do git lfs pull -I "${d}**" && rm -rf .git/lfs/objects || exit 1; done && \
    test -z "$(git lfs ls-files -I 'Assets/**' | grep -v '^[0-9a-f]* \* ')" && test "$(find Assets -type f | wc -l)" = 15365 && \
    mv Assets /opt/RoboDojo/Assets && cd / && rm -rf /tmp/hf
# install.sh: base deps (its dev tools ruff and pre-commit left out), then torch, Isaac Sim, Isaac Lab, cuRobo, re-pins
RUN uv pip install huggingface_hub transforms3d ffmpeg open3d msgpack-numpy && \
    uv pip install opencv-python-headless==4.11.0.86 pillow matplotlib "scipy==1.15.3" scikit-learn && \
    uv pip install numpy==1.26.0 && rm -rf /root/.cache/uv
RUN uv pip install "numpy==1.26.0" "typing_extensions==4.12.2" "filelock==3.13.1" && \
    uv pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128 && \
    rm -rf /root/.cache/uv
RUN uv pip install "isaacsim[all,extscache]==5.1.0" --extra-index-url https://pypi.nvidia.com && rm -rf /root/.cache/uv
RUN cd /opt/RoboDojo/third_party/IsaacLab && echo Yes | TERM=xterm ./isaaclab.sh --install none && \
    rm -rf /root/.cache/pip /root/.cache/uv
RUN cd /opt/RoboDojo/third_party/curobo && pip install --no-cache-dir -e ".[cu12]" --no-build-isolation && \
    pip install --no-cache-dir "numpy==1.26.0" "packaging==23.0" "typing_extensions==4.12.2" "filelock==3.13.1" \
      "websockets==12.0" "scipy==1.15.3" "warp-lang==1.11.0" && \
    find /opt/RoboDojo/third_party -name .git -prune -exec rm -rf {} + ; true
# Pin: every package set to the version of the reference build (requirements.lock, without resolving), packages an unpinned
# upstream step pulls in today but the lock does not list removed, and the build fails unless the result is exactly the lock
ADD --chmod=644 --checksum=sha256:42f4bb5ae88d01fe62d34a1af0e95b80ccc800aaffe5f21197b27f81d98c14d8 https://raw.githubusercontent.com/mll-lab-nu/embodied-first-exam/ce96d0f0ad5ae48c818deb1ad770cf5d89abb08b/images/robodojo/requirements.lock /opt/requirements.lock
RUN uv pip install --no-deps --index-strategy unsafe-best-match --extra-index-url https://download.pytorch.org/whl/cu128 \
      --extra-index-url https://pypi.nvidia.com -r /opt/requirements.lock && rm -rf /root/.cache/uv && \
    uv pip freeze --exclude-editable | grep -vxFf /opt/requirements.lock | sed 's/[ =@].*//' | xargs -r uv pip uninstall && \
    uv pip freeze --exclude-editable | diff - /opt/requirements.lock && echo "environment == requirements.lock"
# RoboDojo's Isaac Lab pins the extension isaacsim.asset.importer.urdf =2.4.31 (the wheels carry 2.4.30): Kit downloads it from
# NVIDIA's extension registry at its first start; the tasks run offline, so the app starts once here and what Kit downloaded
# moves into the wheels' extension cache, where an offline start finds it
RUN cd /tmp && (timeout 900 python -c "import argparse; from isaaclab.app import AppLauncher; ap = argparse.ArgumentParser(); \
      AppLauncher.add_app_launcher_args(ap); a = ap.parse_args([]); a.headless = True; a.enable_cameras = True; AppLauncher(a)" \
      > /tmp/kit_warmup.log 2>&1 || true) && D=/root/.local/share/ov/data/exts/v2 && \
    X=/opt/venv/lib/python3.11/site-packages/isaacsim/extscache && ls -d $D/isaacsim.asset.importer.urdf-2.4.31+* && \
    mv $D/isaacsim.asset.importer.urdf-2.4.31+* $D/omni.kit.pip_archive-* $X/ && rm -rf /root/.local/share/ov /tmp/kit_warmup.log
# RoboDojo's install step: the robots' cuRobo configs (curobo.yml) from their templates, with the asset path filled in
RUN cd /opt/RoboDojo && python utils/update_embodiment_config_path.py > /dev/null && ls Assets/Robots/*/curobo.yml
# Web assets: three MDL materials two of RoboDojo's USDs load from NVIDIA's asset bucket, baked in and checked against their
# sha256 (web_assets.txt); localize_assets.py points the USDs at the copies (a throwaway usd-core: Isaac's pxr loads only in Kit)
ADD --chmod=644 --checksum=sha256:3b776946a70a3281ac5d6a88438c96ef08a747c94a1bd1979ab46f144f9f058f https://raw.githubusercontent.com/mll-lab-nu/embodied-first-exam/ce96d0f0ad5ae48c818deb1ad770cf5d89abb08b/images/robodojo/web_assets.txt /opt/isaac-assets/web_assets.txt
ADD --chmod=644 --checksum=sha256:c9154ec7d049c581a0a69c7654bf9ee689692e2053d93f8dfd5b2a8a4a0661fa https://raw.githubusercontent.com/mll-lab-nu/embodied-first-exam/ce96d0f0ad5ae48c818deb1ad770cf5d89abb08b/images/robodojo/localize_assets.py /opt/isaac-assets/localize_assets.py
RUN set -e; grep -v '^#' /opt/isaac-assets/web_assets.txt | while read -r sha url dst; do \
      mkdir -p "$(dirname "$dst")"; curl -sSfL -o "$dst" "$url"; echo "$sha  $dst" | sha256sum -c --quiet -; done; \
    python -m venv /tmp/usdv && /tmp/usdv/bin/pip install -q --no-cache-dir usd-core==25.5 && \
    /tmp/usdv/bin/python /opt/isaac-assets/localize_assets.py \
      https://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/2023_1/=/opt/isaac-assets/Materials/2023_1/ \
      http://omniverse-content-production.s3-us-west-2.amazonaws.com/Materials/=/opt/isaac-assets/Materials/2023_1/ -- \
      /opt/RoboDojo/Assets/Sensor/Camera/realsense.usd /opt/RoboDojo/Assets/Object/RoboDojo/Geometry/camera_stand/00000/object.usd && \
    rm -rf /tmp/usdv
# Vulkan: one ICD manifest, the one VK_ICD_FILENAMES names (not every host's container toolkit injects one)
RUN mkdir -p /etc/vulkan/icd.d /etc/vulkan/implicit_layer.d && \
    printf '{\n    "file_format_version" : "1.0.0",\n    "ICD" : {\n        "library_path" : "libGLX_nvidia.so.0",\n        "api_version" : "1.3.194"\n    }\n}\n' > /etc/vulkan/icd.d/nvidia_icd.json && \
    printf '{\n    "file_format_version" : "1.0.0",\n    "layer": {\n        "name": "VK_LAYER_NV_optimus",\n        "type": "INSTANCE",\n        "library_path": "libGLX_nvidia.so.0",\n        "api_version" : "1.3.194",\n        "implementation_version" : "1",\n        "description" : "NVIDIA Optimus layer",\n        "functions": {\n            "vkGetInstanceProcAddr": "vk_optimusGetInstanceProcAddr",\n            "vkGetDeviceProcAddr": "vk_optimusGetDeviceProcAddr"\n        },\n        "enable_environment": {\n            "__NV_PRIME_RENDER_OFFLOAD": "1"\n        },\n        "disable_environment": {\n            "DISABLE_LAYER_NV_OPTIMUS_1": ""\n        }\n    }\n}\n' > /etc/vulkan/implicit_layer.d/nvidia_layers.json
# Kit caches (shaders, extension registry, user data) live under /cache so a task's compose can keep them in a volume
RUN mkdir -p /cache/ov-cache /cache/ov-data /cache/ov-logs /root/.cache /root/.local/share /root/.nvidia-omniverse /app/output && \
    ln -s /cache/ov-cache /root/.cache/ov && ln -s /cache/ov-data /root/.local/share/ov && ln -s /cache/ov-logs /root/.nvidia-omniverse/logs
ENV PYTHONPATH=/opt/RoboDojo
# apt read the Ubuntu archive snapshot above, so the build's packages stay pinned; the image itself points apt back at the
# Ubuntu archive (the base image's sources.list, byte for byte): an `apt-get update` at run time is fast and reliable
RUN sed -i -e '/ jammy-security /s|http://snapshot.ubuntu.com/ubuntu/20261001T000000Z/|http://security.ubuntu.com/ubuntu/|' \
           -e 's|http://snapshot.ubuntu.com/ubuntu/20261001T000000Z/|http://archive.ubuntu.com/ubuntu/|' /etc/apt/sources.list && \
    echo "15a39563d491def84446c8a5304e873a6b6509d56e2b54edce8eea154e1290a0  /etc/apt/sources.list" | sha256sum -c -
WORKDIR /app