Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Singularity Recipe for MultiBUGS
bootstrap: docker
from: ubuntu:18.04
%help
This will run MultiBUGS
%environment
export PATH=/opt/multibugs:${PATH}
%post
# Get dependencies
apt-get update
apt-get install -y --no-install-recommends \
locales
# Configure default locale
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen en_US.utf8
/usr/sbin/update-locale LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Get more dependencies
apt-get update
apt-get install -y --no-install-recommends build-essential
apt-get install -y --no-install-recommends \
libc6-dev libc6-i386 g++-multilib wget tar gnupg pax vim
# Get MPICH, bbcb, GTK2
wget http://deb.oberon.org/deb.oberon.org.gpg.key
apt-key add deb.oberon.org.gpg.key
dpkg --add-architecture i386
echo "deb http://deb.oberon.org/linux testing main" | tee -a /etc/apt/sources.list
echo "deb http://deb.oberon.org/linux18 testing main" | tee -a /etc/apt/sources.list
apt-get update
apt-get install -y --no-install-recommends bbcb
apt-get install -y --no-install-recommends libatk-adaptor:i386 libgtk2.0-0:i386 gtk2-engines:i386 gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 gnome-themes-extra:i386 lib32stdc++6 packagekit-gtk3-module:i386 strace
apt-get install -y --no-install-recommends mpich:i386
# Get the pre-built Ubuntu 18.04 binaries
cd /opt
wget --no-check-certificate https://github.com/MultiBUGS/MultiBUGS/releases/download/v2.0/multibugs_2.0.tar.gz
tar xf multibugs_2.0.tar.gz
# Clean up
rm -rf /var/lib/apt/lists/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment