-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
85 lines (77 loc) · 1.92 KB
/
Dockerfile
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
83
84
85
FROM --platform=linux/amd64 rocker/verse:4.4.1
WORKDIR /home/rocker
RUN apt update -y && apt install -y libmariadb-dev libmariadb-dev-compat
RUN apt install -y --no-install-recommends libxt6
# returns an error but tlmgr is updated to 2024 regardless
RUN wget ${CTAN_REPO}/update-tlmgr-latest.sh && bash update-tlmgr-latest.sh; exit 0
# install necessary libraries
RUN R -e "install.packages(c( \
'DBI', \
'RCurl', \
'REDCapR', \
'RMariaDB', \
'argparse', \
'checkmate', \
'dbx', \
'digest', \
'dotenv', \
'here', \
'janitor', \
'quarto', \
'rjson', \
'sendmailR', \
'sqldf', \
'writexl', \
'openxlsx', \
'kableExtra' \
'getip' \
))"
RUN R -e "devtools::install_github('allanvc/mRpostman')"
RUN R -e "tinytex::tlmgr_install(c(\
'amscls', 'amsmath', \
'bookmark', \
'booktabs', \
'caption','colortbl', 'dvips', \
'ec', 'environ', 'epstopdf-pkg', \
'etoolbox', 'euenc', \
'fancyvrb', 'float', 'fontspec', \
'framed', 'geometry', \
'gsftopk', 'helvetic', \
'hyperref', 'iftex', \
'koma-script', \
'latexmk', \
'makecell', 'mathspec', \
'mdwtools', 'multirow', \
'natbib', 'oberdiek', \
'pdfcol', \
'pdflscape', \
'pgf', \
'tabu', \
'tcolorbox', \
'threeparttable', 'threeparttablex', \
'times', 'tipa', 'titling', \
'trimspaces', 'ulem', \
'unicode-math', \
'upquote', \
'varwidth', 'wrapfig', 'xcolor', \
'xunicode', 'zapfding' \
))"
# build and install this package
ADD . /home/rocker/redcapcustodian
RUN R CMD build --no-build-vignettes redcapcustodian
RUN R CMD INSTALL redcapcustodian_*.tar.gz
RUN rm -rf redcapcustodian
# Add non-package things
ADD . /home/rocker
RUN rm -rf .Rbuildignore
RUN rm -rf NAMESPACE
RUN rm -rf R
RUN rm -rf .dockerignore
RUN rm -rf DESCRIPTION
RUN rm -rf hosts
RUN rm -rf host_template
RUN rm -rf make_host.sh
RUN rm -rf .Rhistory
RUN rm -rf Dockerfile
# Note where we are, what is there, and what's in the package dir
CMD pwd && ls -AlhF ./