xrobin/singularity-plip:latest
$ singularity pull shub://xrobin/singularity-plip:latest
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.2
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-latest |
collection name | xrobin/singularity-plip |
branch | master |
tag | latest |
commit | 62ddf678cf391912351b3a54d0a469205f9fa9d9 |
version (container hash) | 8563eba3735e143e099e4373cd44ce75 |
build date | 2020-11-28T08:07:47.676Z |
size (MB) | 594 |
size (bytes) | 213999647 |
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.