picard_3.0.0.def 1.35 KB
Newer Older
1 2 3 4
BootStrap: docker
From: centos:8

%help
5
This is a singularity container packing picard tools v3.0.0 and java 17. An R installation (4.3.3) is also provided as it is required by some picard tools. 
6
Authors : yannis.duffourd@u-bourgogne.fr, valentin.vautrot@u-bourgogne.fr
7 8 9 10 11 12 13 14

This singularity recipe is open source and free. Please redistribute it as well.
No warranty is provided.

%post
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

15 16 17 18 19 20
dnf update -y --exclude=filesystem
dnf install -y epel-release wget
dnf --enablerepo=powertools install -y openblas-devel

# # install R
dnf install -y R-core-4.3.3-1.el8.x86_64
21

22 23
# # install java
dnf install -y java-17-openjdk java-17-openjdk-devel
24

25
# # install picard
26 27 28
mkdir /opt/picard_3.0.0
wget -O /opt/picard_3.0.0/picard.jar https://github.com/broadinstitute/picard/releases/download/3.0.0/picard.jar 

29
# cleanup       
30 31 32 33

%labels
Maintainer Yannis Duffourd
Updater Yannis Duffourd <yannis.duffourd@u-bourgogne.fr>
34
ContainerVersion v1.1
35
PicardTools 3.0.0 (Broad institute)
36 37
R version 4.3.3
Java version 17.0.1
38 39 40 41 42 43

%environment
    export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which java)))))
    export PATH=$PATH:$JAVA_HOME/bin

%runscript
44
echo "## java version : "
45
java -version
46
echo "## R version : "
47
R --version