-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbison.def
58 lines (50 loc) · 1.45 KB
/
bison.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
BootStrap: docker
From: centos:latest
%post
BUILD_DIR=/tmp
umask 0002
yum clean all
yum -y update
yum -y install wget git libz.so.1 tbb-devel zlib-devel bzip2-devel
yum -y groupinstall "Development Tools" # gcc 4.8.5-11
cd $BUILD_DIR
# build openmpi
VER=1.10.3
wget https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-$VER.tar.gz
tar xvf openmpi-$VER.tar.gz
cd openmpi-$VER
./configure
make install
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig
cd $BUILD_DIR
rm openmpi-$VER.tar.gz
# build bowtie
VER=2.3.2
wget https://downloads.sourceforge.net/project/bowtie-bio/bowtie2/$VER/bowtie2-$VER-source.zip
unzip bowtie2-$VER-source.zip
cd bowtie2-$VER
make install
cd $BUILD_DIR
rm bowtie2-$VER-source.zip
# build bison
DIR=/usr/local/apps
APP=bison
VER=0.4.0
wget https://github.com/dpryan79/bison/archive/$VER.tar.gz
tar xvf $VER.tar.gz
cd bison-$VER
git clone https://github.com/samtools/htslib.git
cd htslib
git checkout 9b1cb94
cd ..
mkdir -p $DIR/$APP/$VER
make CC=mpicc
make herd CC=mpicc
make auxiliary CC=mpicc
make install PREFIX=$DIR/$APP/$VER
# add to PATH
echo "" >> /environment
echo "export PATH=$DIR/$APP/$VER:"'$PATH' >> /environment
# create bind points for NIH HPC environment
mkdir /gpfs /spin1 /gs2 /gs3 /gs4 /gs5 /gs6 /data /scratch /fdb /lscratch