From 813fcaae909130525bb7cb7ab89aa77790fb9fbe Mon Sep 17 00:00:00 2001 From: egillax Date: Tue, 30 Jul 2024 14:00:03 +0200 Subject: [PATCH] try to use pak with r-hub repo for common arm64 binaries --- Dockerfile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index f61b095..eda5144 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,16 +26,19 @@ RUN apt-get -y update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN R CMD javareconf -RUN install2.r -n -1 \ - remotes \ - CirceR \ - Eunomia \ - duckdb \ - && installGithub.r \ - OHDSI/CohortGenerator \ - OHDSI/ROhdsiWebApi \ - OHDSI/ResultModelManager - +RUN install2.r pak + +RUN Rscript -e "options('repos'=c(RHUB='https://raw.githubusercontent.com/r-hub/repos/main/ubuntu-22.04-aarch64/4.4', \ + PPM='https://p3m.dev/cran/__linux__/jammy/latest')); \ + pak::pkg_install(c('remotes', \ + 'CirceR', \ + 'Eunomia', \ + 'duckdb', \ + 'DatabaseConnector', \ + 'ohdsi/CohortGenerator', \ + 'ohdsi/ROhdsiWebApi', \ + 'ResultModelManager'))" + RUN Rscript -e "DatabaseConnector::downloadJdbcDrivers(dbms='all', pathToDriver='/database_drivers/')" ENV DATABASECONNECTOR_JAR_FOLDER=/database_drivers/