Skip to content

Commit a526b41

Browse files
committed
Add Dockerfile and Makefile for building docker container of opencyto flow tools. Update buildignore
1 parent db13883 commit a526b41

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
^\.Rproj\.user$
33
sticker.R
44
inst/figures
5+
Dockerfile
6+
Makefile

Dockerfile

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM rocker/rstudio:latest
2+
3+
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
4+
libxml2-dev \
5+
libcairo2-dev \
6+
libsqlite3-dev \
7+
libmariadbd-dev \
8+
libmariadb-client-lgpl-dev \
9+
libpq-dev \
10+
libssh2-1-dev \
11+
unixodbc-dev \
12+
libgeos-dev \
13+
libudunits2-dev \
14+
libgdal-dev
15+
RUN R -e "install.packages(c('rgeos','sf','units'),type='source')"
16+
RUN R -e "source('https://bioconductor.org/biocLite.R')" \
17+
&& install2.r --error \
18+
--deps TRUE \
19+
tidyverse \
20+
dplyr \
21+
ggplot2 \
22+
devtools \
23+
formatR \
24+
remotes \
25+
selectr \
26+
caTools \
27+
&& R -e "library(BiocInstaller); biocLite(c('openCyto','COMPASS','MIMOSA','CytoML','ggcyto'))"
28+
# not clear why selectr needs explicit re-install, see https://github.com/rocker-org/rocker-versioned/pull/63
29+
30+
## Notes: Above install2.r uses --deps TRUE to get Suggests dependencies as well,
31+
## dplyr and ggplot are already part of tidyverse, but listed explicitly to get their (many) suggested dependencies.
32+
## In addition to the the title 'tidyverse' packages, devtools is included for package development.
33+
## RStudio wants formatR for rmarkdown, even though it's not suggested.
34+
## remotes included for installation from heterogenous sources including git/svn, local, url, and specific cran versions

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
latest:
2+
docker build -t gfinak/opencyto .
3+
4+
5+

0 commit comments

Comments
 (0)