Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (35 sloc) 1.53 KB
Bootstrap:docker
From:repronim/simple_workflow:latest
# so if image is executed we just enter the environment
%runscript
echo "Welcome to the ReproMan development environment."
echo "Reprozip pre-installed via pip. "
echo "ReproMan git repo under /opt/reproman and installed for development systemwide"
/bin/bash
%post
echo "Adding reproman pieces"
umask 022
# knock
curl -s http://neuro.debian.net/_files/knock-snapshots;
apt-get update -q
eatmydata apt-get install -y strace python-pip gcc python-virtualenv python-dev git-annex-standalone git libsqlite3-dev python-yaml python-pytest
# additional pieces peculiar to reprozip
eatmydata apt-get install -y locales
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
locale-gen
# additional depends for reproman
eatmydata apt-get install -y libffi-dev libssl-dev python-apt
# Generate our shareable env
rm -rf /opt/reproman; mkdir -p /opt/reproman
# not available within singularity's shell so will do system wide
# virtualenv --system-site-packages /opt/reproman/venv
# source /opt/reproman/venv/bin/activate
git clone git://github.com/repronim/reproman /opt/reproman
pip install reprozip
# we need updated cryptography (I guess paramiko lacks versioned depends)
pip install --upgrade cryptography
pip install -e /opt/reproman
# So outside 'staff' ppl could modify inside as well
chown nobody.staff -R /opt/reproman
chmod g+rwX -R /opt/reproman /usr/local
chmod o+rwX -R /opt/reproman /usr/local
You can’t perform that action at this time.