xrobin/singularity-plip:1.4.1
$ singularity pull shub://xrobin/singularity-plip:1.4.1
Singularity Recipe
BootStrap: docker
From: ubuntu:16.04
%post
# install some system deps
apt-get -y update
apt-get -y install locales
locale-gen en_US.UTF-8
# Generic build dependencies
apt-get -y install git mdm cmake build-essential wget
# PLIP dependencies
apt-get -y install python-future python-numpy python-lxml pymol
# OpenBabel dependencies:
apt-get -y install libxml2
apt-get -y install libpython$(python -c 'import sys; print("%s.%s" % (sys.version_info.major, sys.version_info.minor))')
# OpenBabel build dependencies
apt-get -y install libxml2-dev libeigen3-dev zlib1g-dev python-dev
# Install PLIP in /opt
if [ -d /opt/pliptool ]; then rm -rf /opt/pliptool; fi
git clone https://github.com/ssalentin/plip.git /opt/pliptool
cd /opt/pliptool
git checkout tags/v1.4.1
cd
# Install OpenBabel
if [ -d openbabel ]; then rm -rf openbabel; fi
mkdir openbabel
cd openbabel
wget https://sourceforge.net/projects/openbabel/files/openbabel/2.4.1/openbabel-2.4.1.tar.gz
tar -xf openbabel-2.4.1.tar.gz
cd openbabel-2.4.1
mkdir build
cd build
cmake .. -DPYTHON_BINDINGS=ON
make -j$(ncpus)
make install
# Cleanup OpenBabel
cd ../../..
rm -rf openbabel
# Cleanup system build deps
apt-get -y remove git mdm cmake build-essential wget
# Cleanup OpenBabel build deps
apt-get -y remove libxml2-dev libeigen3-dev zlib1g-dev python-dev
# Cleanup apt
apt-get -y autoremove
apt-get clean
%runscript
exec /opt/pliptool/plip/plipcmd "$@"
%environment
export PYTHONPATH=/opt/pliptool/plip
Collection
- Name: xrobin/singularity-plip
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/xrobin-singularity-plip-1.4.1 |
collection name | xrobin/singularity-plip |
branch | master |
tag | 1.4.1 |
commit | 366d3e5cfcffbdeae84091fd37ecf743ac683f8b |
version (container hash) | 6418e5a5853dd445c9b0bfc757712337 |
build date | 2018-05-24T17:09:57.058Z |
size (MB) | 594 |
size (bytes) | 213954591 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.