Skip to content

Commit

Permalink
try to use pak with r-hub repo for common arm64 binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Jul 30, 2024
1 parent bb40ee1 commit 813fcaa
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit 813fcaa

Please sign in to comment.