-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
51 lines (46 loc) · 1.82 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
## This Dockerfile describes the R analysis environment for:
##
## Kamvar, Z.N., Amaradasa, B.S., Jhala, R., McCoy, S., Steadman, S., and
## Everhart, S.E. (2017). Population structure and phenotypic variation of
## _Sclerotinia sclerotiorum_ from dry bean (_Phaseolus vulgaris_) in the
## United States PeerJ XXX
##
## package versions here are locked to those present in version 3.4.2
##
## Note: this Dockerfile was modified from
## https://github.com/NESCent/popgen-docker/blob/193387d3f1e5484ef8a1ddf6d66cfca64ccd40d7/Rpopgen/Dockerfile
##
## It also includes logic from
## https://github.com/benmarwick/mjbtramp/blob/898ee99f17d64a41161a8b6760325572c7406b4b/Dockerfile
FROM rocker/verse:3.4.2
MAINTAINER Zhian Kamvar <[email protected]>
# Prevent error messages from debconf about non-interactive frontend
# ARG TERM=linux
# ARG DEBIAN_FRONTEND=noninteractive
# ggforce requires units which required udunits2
RUN apt-get update \
&& apt-get install -y libudunits2-dev \
&& apt-get install -y glpk-utils
# Rocker now uses TinyTex, which is quite stripped down, so we need to install extra packages
RUN tlmgr install \
babel-english \
psnfss \
lineno \
xcolor \
preprint \
fancyhdr \
lastpage \
titlesec \
enumitem \
microtype \
lipsum \
collection-fontsrecommended
## Install population genetics packages from MRAN and GitHub from 2017-09-18
## You can find the descriptions of the packages in the DESCRIPTION file
## I'm running devtools install twice here to force the github repos to install
## Note: once everything is on the OSF project page, the URL will be:
## https://osf.io/bq47d/download
RUN . /etc/environment \
&& mkdir /analysis \
&& wget -O - https://osf.io/bq47d/download > /analysis/DESCRIPTION \
&& R -e "devtools::install('/analysis', keep_source=TRUE, args='--install-tests', dependencies=TRUE, repos='$MRAN')"