-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add bin/install.sh to install BBS dependencies - Add Ubuntu-files to track docker-specific dependencies - Move install.R to bin
- Loading branch information
Showing
6 changed files
with
158 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# APT required | ||
byacc | ||
curl | ||
default-libmysqlclient-dev | ||
fortran77-compiler | ||
ggobi | ||
imagemagick | ||
libapparmor-dev | ||
libarchive-extract-perl | ||
libbz2-dev | ||
libcgi-pm-perl | ||
libdbd-mysql-perl | ||
libdbi-perl | ||
libfile-copy-recursive-perl | ||
libgl1-mesa-dev | ||
libgmp3-dev | ||
libgsl0-dev | ||
libgslcblas0 | ||
libhdf5-dev | ||
libhdf5-serial-dev | ||
libjpeg8-dev | ||
libjpeg-turbo8-dev | ||
liblapack-dev | ||
#libmariadb-dev-compat # Depends on libmariadb-dev, conflicts with libmysqlclient-dev | ||
libmodule-build-perl | ||
libncurses-dev | ||
libopenmpi-dev | ||
libperl-dev | ||
libprotoc-dev | ||
librdf0-dev | ||
libtiff5-dev | ||
libxml-simple-perl | ||
libxpm-dev | ||
libz-dev | ||
libzmq3-dev | ||
mpi-default-bin | ||
openmpi-bin | ||
openmpi-common | ||
openmpi-doc | ||
pkg-config | ||
software-properties-common | ||
sqlite | ||
tabix | ||
tcl8.6-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# APT skip | ||
build-essential | ||
clustalo | ||
fuse | ||
gfortran | ||
git | ||
gobjc | ||
gsfonts-x11 | ||
infernal | ||
kallisto | ||
libavfilter-dev | ||
libcurl4-openssl-dev | ||
libeigen3-dev | ||
libfribidi-dev | ||
libfuse-dev | ||
libgmp-dev # BD uses libgmp3-dev | ||
libgraphviz-dev | ||
libgsl-dev # BD uses libgsl0-dev | ||
libicu-dev | ||
librsvg2-dev | ||
libssl-dev | ||
libtiff-dev # BD uses libtiff5-dev | ||
libx11-dev | ||
manpages-dev | ||
mlocate | ||
mpi-default-dev # BD uses mpi-default-bin | ||
ocl-icd-opencl-dev | ||
pandoc | ||
pandoc-citeproc | ||
t1-xfree86-nonfree | ||
tcl-dev # BD uses tcl8.6-dev | ||
texi2html | ||
texinfo | ||
texlive | ||
texlive-bibtex-extra | ||
texlive-fonts-extra | ||
texlive-font-utils | ||
texlive-lang-european | ||
texlive-latex-extra | ||
texlive-luatex | ||
texlive-pstricks | ||
texlive-science | ||
tree | ||
ttf-xfree86-nonfree | ||
ttf-xfree86-nonfree-syriac | ||
xfonts-base # BD uses xfonts-100dpi and xfonts-75dpi | ||
xfonts-scalable | ||
zlib1g-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cwltool | ||
pandas | ||
pyyaml | ||
sklearn | ||
tensorflow | ||
wheel |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Set variables | ||
version="20.04" | ||
repo="https://github.com/Bioconductor/bbs" | ||
branch="master" | ||
bbs_files="/tmp/BBS/Ubuntu-files/$version" | ||
bd_files="/tmp/$version" | ||
|
||
# Get repository with Ubuntu-files | ||
if [ ! -d "/tmp/BBS" ]; then | ||
git clone $repo /tmp/BBS | ||
cd /tmp/BBS | ||
if [ $branch != "master" ]; then | ||
git fetch origin $branch | ||
git switch $branch | ||
fi | ||
cd ~ | ||
fi | ||
|
||
# Constructing array of apt packages, removing unnecessary packages. | ||
cat $bbs_files/apt_*.txt | awk '/^[^#]/ {print $1}' | sort >> /tmp/bbs_apt_pkgs | ||
cat $bd_files/apt_*.txt | awk '/^[^#]/ {print $1}' | sort >> /tmp/skip_apt_pkgs | ||
apt_pkgs=$(comm -23 /tmp/bbs_apt_pkgs /tmp/skip_apt_pkgs) | ||
|
||
# Constructing array of pip packages, removing unnecessary packages. | ||
cat $bbs_files/pip_*.txt | awk '/^[^#]/ {print $1}' | sort >> /tmp/bbs_pip_pkgs | ||
cat $bd_files/pip_*.txt | awk '/^[^#]/ {print $1}' | sort >> /tmp/skip_pip_pkgs | ||
pip_pkgs=$(comm -23 /tmp/bbs_pip_pkgs /tmp/skip_pip_pkgs) | ||
|
||
# Packages always required by Bioconductor Docker | ||
apt_required_pkgs=$(cat $bd_files/apt_required.txt | awk '/^[^#]/ {print $1}') | ||
|
||
# Install dependencies | ||
|
||
# Install apt packages | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends apt-utils | ||
|
||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends $apt_pkgs | ||
|
||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends $apt_required_pkgs \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install pip packages | ||
pip3 install $pip_pkgs | ||
|
||
# Remove files | ||
if test -n "$(find /tmp -maxdepth 1 -name '*_pkgs' -print -quit)"; then | ||
rm /tmp/*_pkgs | ||
fi |