-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_R
82 lines (50 loc) · 2.11 KB
/
Dockerfile_R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM rocker/r-ver:4.4.1
# Select cran mirror
RUN echo 'options(repos = c(CRAN = "https://ftp.fau.de/cran/"))' >>"${R_HOME}/etc/Rprofile.site"
# Number of CPUs to speed up build (unclear, if this has any effect)
ENV NCPUS=1
# R-env
# Utils
RUN apt-get update && apt-get install -y -q \
apt-utils \
vim less \
wget curl
# etlutils
RUN apt-get install -y \
libssl-dev libcurl4-openssl-dev libpq-dev libxml2-dev
RUN /rocker_scripts/bin/install2.r -n $NCPUS memuse
RUN /rocker_scripts/bin/install2.r -n $NCPUS openxlsx
RUN /rocker_scripts/bin/install2.r -n $NCPUS RcppTOML
RUN /rocker_scripts/bin/install2.r -n $NCPUS DBI
RUN /rocker_scripts/bin/install2.r -n $NCPUS lubridate
RUN /rocker_scripts/bin/install2.r -n $NCPUS RPostgres
RUN /rocker_scripts/bin/install2.r -n $NCPUS ICD10gm
RUN /rocker_scripts/bin/install2.r -n $NCPUS data.table
RUN /rocker_scripts/bin/install2.r -n $NCPUS httr
RUN /rocker_scripts/bin/install2.r -n $NCPUS rlang
RUN /rocker_scripts/bin/install2.r -n $NCPUS stringr
RUN /rocker_scripts/bin/install2.r -n $NCPUS xml2
#RUN /rocker_scripts/bin/install2.r -n $NCPUS fhircrackr
RUN R -e "install.packages('remotes')"
RUN R -e "remotes::install_github('POLAR-fhiR/fhircrackr@142-optimize-fhir_melt_all')"
WORKDIR /src
COPY R-etlutils R-etlutils
RUN R CMD build R-etlutils/etlutils
RUN R CMD INSTALL --preclean --no-multiarch --with-keep.source R-etlutils/etlutils
# cds2db
COPY R-cds2db R-cds2db
RUN R CMD build R-cds2db/cds2db
RUN R CMD INSTALL --preclean --no-multiarch --with-keep.source R-cds2db/cds2db
# db2frontend
RUN apt-get install -y libsodium-dev libsecret-1-0
RUN /rocker_scripts/bin/install2.r -n $NCPUS redcapAPI
RUN /rocker_scripts/bin/install2.r -n $NCPUS dplyr
COPY R-db2frontend R-db2frontend
RUN R CMD build R-db2frontend/db2frontend
RUN R CMD INSTALL --preclean --no-multiarch --with-keep.source R-db2frontend/db2frontend
# DataProcessor
COPY R-dataprocessor R-dataprocessor
RUN R CMD build R-dataprocessor/dataprocessor
RUN R CMD INSTALL --preclean --no-multiarch --with-keep.source R-dataprocessor/dataprocessor
# cleanup
RUN apt-get autoremove && apt-get clean