Skip to content

Commit 5e094cb

Browse files
committed
[REL] Update of docker-images + doc
1 parent ebc2e94 commit 5e094cb

File tree

4 files changed

+89
-2
lines changed

4 files changed

+89
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fentechai/cdt-env-base:21.01
1+
FROM fentechai/cdt-env-base:22.02
22
MAINTAINER Diviyan Kalainathan <[email protected]>
33
LABEL description="Docker image for the Causal Discovery Toolbox"
44
ARG python

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,50 @@ Check out how to install all R dependencies in the before-install section of the
6565
The [r-requirements file](https://github.com/FenTechSolutions/CausalDiscoveryToolbox/blob/master/r_requirements.txt) notes all of the R packages used by the toolbox.
6666

6767

68+
Here is an example of installation script of the R packages on Ubuntu 20.04:
69+
70+
``` sh
71+
apt-get -qq update
72+
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
73+
apt-get -qq install dialog apt-utils -y
74+
apt-get install apt-transport-https -y
75+
apt-get install -qq software-properties-common -y
76+
apt-get -qq update
77+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
78+
add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' -y
79+
apt-get -qq update
80+
81+
apt-get -qq install r-base -y
82+
apt-get -qq install libssl-dev -y
83+
apt-get -qq install libgmp3-dev -y
84+
apt-get -qq install git -y
85+
apt-get -qq install build-essential -y
86+
apt-get -qq install libv8-dev -y
87+
apt-get -qq install libcurl4-openssl-dev -y
88+
apt-get -qq install libgsl-dev -y
89+
90+
Rscript -e 'install.packages(c("V8"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
91+
Rscript -e 'install.packages(c("sfsmisc"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
92+
Rscript -e 'install.packages(c("clue"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
93+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/randomForest/randomForest_4.6-14.tar.gz", repos=NULL, type="source")'
94+
Rscript -e 'install.packages(c("lattice"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
95+
Rscript -e 'install.packages(c("devtools"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
96+
Rscript -e 'install.packages(c("MASS"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
97+
Rscript -e 'install.packages("BiocManager")'
98+
Rscript -e 'BiocManager::install(c("igraph"))'
99+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/fastICA/fastICA_1.2-2.tar.gz", repos=NULL, type="source")'
100+
Rscript -e 'BiocManager::install(c("SID", "bnlearn", "pcalg", "kpcalg", "glmnet", "mboost"))'
101+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/CAM/CAM_1.0.tar.gz", repos=NULL, type="source")'
102+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/sparsebnUtils_0.0.8.tar.gz", repos=NULL, type="source")'
103+
Rscript -e 'BiocManager::install(c("ccdrAlgorithm", "discretecdAlgorithm"))'
104+
105+
apt-get -qq install libxml2-dev -y
106+
Rscript -e 'install.packages("devtools")'
107+
Rscript -e 'library(devtools); install_github("cran/CAM"); install_github("cran/momentchi2"); install_github("Diviyan-Kalainathan/RCIT", quiet=TRUE, verbose=FALSE)'
108+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/sparsebn/sparsebn_0.1.2.tar.gz", repos=NULL, type="source")'
109+
```
110+
111+
68112
## Overview
69113
### General package structure
70114
The following figure shows how the package and its algorithms are structured

docs/index.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,49 @@ In order to have access to additional algorithms from various R packages such as
127127
Check out how to install all R dependencies in the before-install section of the [travis.yml](https://github.com/FenTechSolutions/CausalDiscoveryToolbox/blob/master/.travis.yml) file for debian based distributions.
128128
The `r-requirements file <https://github.com/FenTechSolutions/CausalDiscoveryToolbox/blob/master/r_requirements.txt>`_ notes all the R packages used by the toolbox.
129129

130+
Here is an example of installation script of the R packages on Ubuntu 20.04:
131+
132+
.. code-block:: sh
133+
134+
apt-get -qq update
135+
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
136+
apt-get -qq install dialog apt-utils -y
137+
apt-get install apt-transport-https -y
138+
apt-get install -qq software-properties-common -y
139+
apt-get -qq update
140+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
141+
add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' -y
142+
apt-get -qq update
143+
144+
apt-get -qq install r-base -y
145+
apt-get -qq install libssl-dev -y
146+
apt-get -qq install libgmp3-dev -y
147+
apt-get -qq install git -y
148+
apt-get -qq install build-essential -y
149+
apt-get -qq install libv8-dev -y
150+
apt-get -qq install libcurl4-openssl-dev -y
151+
apt-get -qq install libgsl-dev -y
152+
153+
Rscript -e 'install.packages(c("V8"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
154+
Rscript -e 'install.packages(c("sfsmisc"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
155+
Rscript -e 'install.packages(c("clue"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
156+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/randomForest/randomForest_4.6-14.tar.gz", repos=NULL, type="source")'
157+
Rscript -e 'install.packages(c("lattice"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
158+
Rscript -e 'install.packages(c("devtools"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
159+
Rscript -e 'install.packages(c("MASS"),repos="http://cran.us.r-project.org", quiet=TRUE, verbose=FALSE)'
160+
Rscript -e 'install.packages("BiocManager")'
161+
Rscript -e 'BiocManager::install(c("igraph"))'
162+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/fastICA/fastICA_1.2-2.tar.gz", repos=NULL, type="source")'
163+
Rscript -e 'BiocManager::install(c("SID", "bnlearn", "pcalg", "kpcalg", "glmnet", "mboost"))'
164+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/CAM/CAM_1.0.tar.gz", repos=NULL, type="source")'
165+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/sparsebnUtils_0.0.8.tar.gz", repos=NULL, type="source")'
166+
Rscript -e 'BiocManager::install(c("ccdrAlgorithm", "discretecdAlgorithm"))'
167+
168+
apt-get -qq install libxml2-dev -y
169+
Rscript -e 'install.packages("devtools")'
170+
Rscript -e 'library(devtools); install_github("cran/CAM"); install_github("cran/momentchi2"); install_github("Diviyan-Kalainathan/RCIT", quiet=TRUE, verbose=FALSE)'
171+
Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/sparsebn/sparsebn_0.1.2.tar.gz", repos=NULL, type="source")'
172+
130173
131174
Overview
132175
========

nv-Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fentechai/nv-cdt-env-base:21.01
1+
FROM fentechai/nv-cdt-env-base:22.02
22
MAINTAINER Diviyan Kalainathan <[email protected]>
33
LABEL description="Nvidia Docker image for the Causal Discovery Toolbox"
44
ARG python

0 commit comments

Comments
 (0)