Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ ARG LINUX_VER=notset
ARG PYTHON_VER=notset
ARG DEBIAN_FRONTEND=noninteractive
ENV PATH=/opt/conda/bin:$PATH
# ensure conda's files and configuration can be found at runtime even if environment activation was bypassed
ENV CONDA_PREFIX=/opt/conda
ENV PYTHON_VERSION=${PYTHON_VER}

SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
Expand Down
7 changes: 5 additions & 2 deletions context/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) 2023-2025, NVIDIA CORPORATION.
#!/usr/bin/env -S bash -l
# Copyright (c) 2023-2026, NVIDIA CORPORATION.

set -eo pipefail

Expand All @@ -10,6 +10,9 @@ https://developer.download.nvidia.com/licenses/NVIDIA_Deep_Learning_Container_Li

EOF

# Activate conda (login shell sources from /etc/profile.d/conda.sh)
conda activate

if [ -e "/home/rapids/environment.yml" ]; then
echo "environment.yml found. Installing packages."
timeout ${CONDA_TIMEOUT:-600} mamba env update -n base -y -f /home/rapids/environment.yml || exit $?
Expand Down
8 changes: 8 additions & 0 deletions tests/container-canary/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,11 @@ checks:
- /bin/bash
- -c
- "[[ $(conda env list --quiet | grep --count -E '^[A-Za-z]+') == 1 ]];"
- name: conda-prefix
description: Conda prefix set to /opt/conda
probe:
exec:
command:
- /bin/bash
- -c
- '[[ "${CONDA_PREFIX}" == "/opt/conda" ]];'
Loading