Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
# so if image is executed we just enter the environment
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"
echo "Adding reproman pieces"
umask 022
# knock
curl -s;
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
# 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:// /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