-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 1.35 KB
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 1.35 KB
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
FROM r-base:3.6.1
RUN apt update && apt -y upgrade
RUN apt -y install r-cran-ggplot2 r-cran-tidyverse libxml2-dev libssl-dev libcurl4-openssl-dev libgit2-dev libboost-dev git python curl autoconf file libgmp-dev libopenmpi-dev gawk emacs ess && apt autoremove -y && apt clean -y
RUN useradd -s /bin/bash --create-home user
USER user
ENTRYPOINT /bin/bash
WORKDIR /home/user
# R packages
RUN mkdir /home/user/R
RUN echo "install.packages(c('devtools', 'DoE.base'), repos = 'https://cloud.r-project.org', lib = '/home/user/R/')" | R --vanilla
# Clone spack repository
RUN git clone -b v0.14.2 --depth 1 https://github.com/spack/spack.git
# Clone and add extra spack repository
RUN git clone https://gitlab.inria.fr/solverstack/spack-repo.git && ./spack/bin/spack repo add spack-repo
# Install chameleon
RUN ./spack/bin/spack install chameleon@0.9.2+starpu~mpi~cuda ^starpu@1.3.1~fast~mpi~cuda~openmp~examples && ./spack/bin/spack clean -a
# Basic Emacs init file
RUN echo "(setq org-confirm-babel-evaluate nil) \
(setq org-babel-interpreters (quote (\"emacs-lisp\" \"python\" \"ditaa\" \"sql\" \"sh\" \"R\" \"haskell\" \"js\" \"calc\" \"mathomatic\"))) \
(add-to-list 'load-path \"/usr/share/emacs/site-lisp/ess/\") \
(org-babel-do-load-languages 'org-babel-load-languages '( (R . t) (python . t) (shell . t) (emacs-lisp t) (lisp t) (C t) (org t)))" > .emacs