Skip to content

Instantly share code, notes, and snippets.

@mojaveazure
Created August 6, 2023 16:25
Show Gist options
  • Save mojaveazure/6dd984b8fdb9311c68524bc5a9b9fc22 to your computer and use it in GitHub Desktop.
Save mojaveazure/6dd984b8fdb9311c68524bc5a9b9fc22 to your computer and use it in GitHub Desktop.
Install tiledbsoma-r on a fresh R/Debian install with no binary packages
FROM rocker/r-base:latest
RUN apt-get update && \
apt-get install -y ca-certificates lsb-release curl cmake git
RUN curl -O https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
RUN apt-get install -yV ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
RUN apt-get update && apt-get install -y libarrow-dev
RUN Rscript -e "\
ncores <- as.integer(system2('grep', c('-c', 'processor', '/proc/cpuinfo'), stdout = TRUE)); \
ncpus <- max(1L, floor(ncores * 0.75)); \
install.packages('tiledbsoma', repos = c('https://tiledb-inc.r-universe.dev', 'https://cloud.r-project.org'), Ncpus = ncpus); \
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment