Skip to content

Latest commit

 

History

History
111 lines (76 loc) · 3.14 KB

NOTES.md

File metadata and controls

111 lines (76 loc) · 3.14 KB

Notes

Tweaks

These images are tweaked as follows:

Environment variables

  • DOWNLOAD_STATIC_LIBV8=1: R (V8): Installing V8 on Linux, the alternative way. (base+ images)
  • RETICULATE_MINICONDA_ENABLED=0: R (reticulate): Disable prompt to install miniconda. (base+ images)

Versions

  • R_VERSION
  • PYTHON_VERSION
  • GIT_VERSION
  • GIT_LFS_VERSION
  • PANDOC_VERSION
  • QUARTO_VERSION (verse+ images)

Miscellaneous

  • BASE_IMAGE: Its very base, a Docker Official Image.
  • PARENT_IMAGE: The image it was derived from.
  • BUILD_DATE: The date it was built (ISO 8601 format).
  • CRAN: The CRAN mirror URL.
  • CTAN_REPO: The CTAN mirror URL. (verse+ images)

MRAN

Environment variable MRAN is deprecated:

After January 31, 2023, we [Microsoft] will no longer maintain the CRAN Time Machine snapshots.

Current situation regarding frozen images:

  • R version < 4.2.2: MRAN retired; CRAN snapshots broken.
  • 4.2.2 ≤ R version < 4.3.1: No CRAN snapshots available.
    • Use renv to create reproducible environments for your R projects.
  • R version ≥ 4.3.1: CRAN snapshots reinstated (PPM).

TeX packages (verse+ images)

In addition to the TeX packages used in rocker/verse, jupyter/scipy-notebook and required for nbconvert, the packages requested by the community are installed.

Python

The Python version is selected as follows:

This Python version is installed at /usr/local/bin.

Additional notes on CUDA

The CUDA and OS versions are selected as follows:

  • CUDA: The lastest version that has image flavour devel including cuDNN available.
  • OS: The latest version that has TensortRT libraries for amd64 available.
    ℹ️ It is taking quite a long time for these to be available for arm64.

Tweaks

  • Provide NVBLAS-enabled R and Rscript.
    • Enabled at runtime and only if nvidia-smi and at least one GPU are present.
  • Provide NVBLAS-enabled radian (base+ images).
    • Enabled at runtime and only if nvidia-smi and at least one GPU are present.

Environment variables

Versions

  • CUDA_VERSION

Miscellaneous

  • CUDA_IMAGE: The CUDA image it is derived from.

Basic Linear Algebra Subprograms (BLAS)

These images use OpenBLAS by default.

To have R and Rscript use NVBLAS instead, copy the NVBLAS-enabled executables to ~/.local/bin:

mkdir -p $HOME/.local/bin;
for file in $(which {R,Rscript}); do
  cp "$file"_ "$HOME/.local/bin/$(basename $file)";
done

and restart the terminal.

ℹ️ The xgboost package benefits greatly from NVBLAS, if it is installed correctly.