Download simulation/modules/IsaacLab/source/isaaclab/test/install_ci/Dockerfile.installci from hk239/v2d: direct link, hf CLI and curl.
- Browser
- Download file 4.56 kB
-
https://huggingface.co/datasets/hk239/v2d/resolve/main/simulation/modules/IsaacLab/source/isaaclab/test/install_ci/Dockerfile.installci
- Command line
-
hf download hf://datasets/hk239/v2d/simulation/modules/IsaacLab/source/isaaclab/test/install_ci/Dockerfile.installci
-
curl -L -o Dockerfile.installci https://huggingface.co/datasets/hk239/v2d/resolve/main/simulation/modules/IsaacLab/source/isaaclab/test/install_ci/Dockerfile.installci
4.56 kB
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | |
| # All rights reserved. | |
| # | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| # Container for Isaac Lab installation CI tests. | |
| # | |
| # Ships both uv and conda so a single image can run every installation | |
| # scenario. Image is large but build is cached across runs. | |
| # | |
| # Usage: | |
| # docker build --build-arg BASE_IMAGE=ubuntu:24.04 -t isaaclab-installci . | |
| # docker run --rm isaaclab-installci -v -k "test_pip" | |
| ARG BASE_IMAGE=ubuntu:24.04 | |
| FROM ${BASE_IMAGE} | |
| # isaaclab.x debug mode | |
| ENV DEBUG=1 | |
| SHELL ["/bin/bash", "-c"] | |
| LABEL description="Container for installation CI tests." | |
| ENV LANG=C.UTF-8 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install system dependencies needed for building Py packages | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| git \ | |
| curl \ | |
| cmake \ | |
| python3 \ | |
| python3-dev \ | |
| python3-pip \ | |
| libglib2.0-0 \ | |
| python3-venv \ | |
| build-essential \ | |
| sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ARM-specific GL/X11 dev headers are intentionally NOT pre-installed here. | |
| # ``./isaaclab.sh -i`` auto-installs them via apt when missing, so install_ci | |
| # exercises the real user-visible install path on ARM. | |
| # Make python3 the default python | |
| RUN ln -sf /usr/bin/python3 /usr/bin/python | |
| # Install test runner dependencies into the system Python | |
| RUN pip install --break-system-packages \ | |
| pytest>=8.0 \ | |
| pytest-timeout>=2.0 | |
| # Install uv system-wide so non-root users can invoke it without PATH trickery | |
| RUN curl -LsSf https://astral.sh/uv/install.sh | UV_INSTALL_DIR=/usr/local/bin sh | |
| # Install Miniconda into the isaaclab user's home directory so the runtime user | |
| # has full write access for creating environments and caching packages. | |
| ARG MINICONDA_VERSION=latest | |
| RUN ARCH=$(case "$(uname -m)" in \ | |
| aarch64|arm64) echo "aarch64" ;; \ | |
| *) echo "x86_64" ;; \ | |
| esac) \ | |
| && curl -fsSL "https://repo.anaconda.com/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-${ARCH}.sh" \ | |
| -o /tmp/miniconda.sh \ | |
| && bash /tmp/miniconda.sh -b -p /home/isaaclab/miniconda3 \ | |
| && rm /tmp/miniconda.sh \ | |
| && chown -R 1000:1000 /home/isaaclab/miniconda3 | |
| # Add the conda wrapper (condabin/) to PATH but NOT miniconda3/bin/, so the | |
| # system Python remains the default `python` and only `conda` itself becomes | |
| # globally available. Tests that need conda's Python activate envs explicitly | |
| # via `conda run -n <env>`. | |
| ENV PATH="/home/isaaclab/miniconda3/condabin:${PATH}" | |
| # Copy the repo | |
| ARG ISAACLAB_PATH=/workspace/isaaclab | |
| ENV ISAACLAB_PATH=${ISAACLAB_PATH} | |
| COPY . ${ISAACLAB_PATH} | |
| # Fix line endings in .sh files (Win git may add \r) | |
| RUN find ${ISAACLAB_PATH} -type f -name "*.sh" -exec sed -i 's/\r$//' {} + | |
| RUN chmod +x ${ISAACLAB_PATH}/isaaclab.sh | |
| # Create non-root runtime user and transfer workspace ownership. | |
| # uid/gid 1000 match the GitHub runner bind-mounts used by Docker-based tests. | |
| # The default ``ubuntu`` user (uid 1000) on Ubuntu 24.04 base images is | |
| # removed first so uid 1000 unambiguously resolves to ``isaaclab`` and our | |
| # NOPASSWD sudoers entry applies. | |
| RUN if getent passwd ubuntu >/dev/null; then userdel -r ubuntu; fi \ | |
| && if getent group ubuntu >/dev/null; then groupdel ubuntu; fi \ | |
| && groupadd --gid 1000 isaaclab \ | |
| && useradd --uid 1000 --gid 1000 -m -s /bin/bash isaaclab \ | |
| && chown isaaclab:isaaclab /home/isaaclab \ | |
| && mkdir -p /home/isaaclab/.cache/uv /home/isaaclab/.cache/pip \ | |
| && chown -R isaaclab:isaaclab /home/isaaclab/.cache \ | |
| && chown -R isaaclab:isaaclab ${ISAACLAB_PATH} | |
| # Passwordless sudo for the runtime user so ``./isaaclab.sh -i`` can apt-get | |
| # install missing GL/X11 build deps without prompting at test time. | |
| RUN echo "isaaclab ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/isaaclab \ | |
| && chmod 0440 /etc/sudoers.d/isaaclab | |
| USER isaaclab | |
| # Accept Miniconda default-channel Terms of Service non-interactively so that | |
| # `conda create` works without user prompts inside the container. | |
| # Runs as isaaclab so the acceptance is written to /home/isaaclab/.condarc. | |
| RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \ | |
| conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r | |
| WORKDIR ${ISAACLAB_PATH} | |
| # Run all installation CI tests by default | |
| ENTRYPOINT ["python", "-m", "pytest", "-c", "source/isaaclab/test/install_ci/pytest.ini", "source/isaaclab/test/install_ci"] | |
| CMD ["-v", "--tb=short"] | |