Skip to content

Instantly share code, notes, and snippets.

@truatpasteurdotfr
Created June 9, 2019 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save truatpasteurdotfr/8319233a6e4c272f0a9c9b3ffd58fa31 to your computer and use it in GitHub Desktop.
Save truatpasteurdotfr/8319233a6e4c272f0a9c9b3ffd58fa31 to your computer and use it in GitHub Desktop.
ubuntu lts 18.04 Singularity recipe
Bootstrap: library
From: ubuntu:18.04
%post
mkdir -p /selinux /misc /net
mkdir -p /pasteur
mkdir -p /local-storage /mnt/beegfs /baycells/home /baycells/scratch /c6/shared /c6/eb /local/gensoft2 /c6/shared/rpm /Bis/Scratch2 /mnt/beegfs
mkdir -p /c7/shared /c7/scratch /c7/home
# non interactive debian
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get -y upgrade
# missing required
apt -y install software-properties-common rsync wget
# https://launchpad.net/~kritalime/+archive/ubuntu/ppa
add-apt-repository ppa:kritalime/ppa
mv /etc/apt/sources.list /etc/apt/sources.list.ori
# incomplete /etc/apt/sources.list from library://ubuntu:18.04 VS docker version
cat <<EOF > /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
EOF
apt-get update
apt-get -y install krita \
libcanberra-gtk-module \
packagekit-gtk3-module
%runscript
echo "singularity exec -B /run library://tru/default/krita /usr/bin/krita"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment