-
Notifications
You must be signed in to change notification settings - Fork 1
/
apptainer.def
35 lines (30 loc) · 947 Bytes
/
apptainer.def
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
BootStrap: docker
From: r-base
# Image for running the tests in predict
%environment
export R_LIBS_USER=~/R-packages
%post
# Install dependencies
apt-get update -y
apt-get install curl -y
Rscript -e "install.packages('iterators')"
Rscript -e "install.packages('numDeriv')"
Rscript -e "install.packages('pracma')"
Rscript -e "install.packages('coda')"
Rscript -e "install.packages('igraph')"
Rscript -e "install.packages('rngtools')"
Rscript -e "install.packages('foreach')"
Rscript -e "install.packages('nimble')"
Rscript -e "install.packages('khroma')"
Rscript -e "install.packages('extraDistr')"
Rscript -e "install.packages('doRNG')"
Rscript -e "install.packages('doParallel')"
%runscript
#!/bin/bash
mkdir ~/R-packages
echo $R_LIBS_USER
Rscript -e "install.packages(pkgs=Sys.getenv('GITHUB_WORKSPACE'), repos=NULL)"
Rscript -e "library("predict")"
cd $GITHUB_WORKSPACE
cd development/tests
source ./tests.sh