UCL-RITS/rcps-shub-recipes:xpra
$ singularity pull shub://UCL-RITS/rcps-shub-recipes:xpra
Singularity Recipe
Bootstrap: debootstrap
OSVersion: bionic
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%environment
# Sets up environment for module use
# --> requires /shared to be bound
MODULE_VERSION=3.2.6
MODULEPATH=/shared/ucl/apps/modulefiles/core:/shared/ucl/apps/modulefiles/applications:/shared/ucl/apps/modulefiles/libraries:/shared/ucl/apps/modulefiles/compilers:/shared/ucl/apps/modulefiles/development:/shared/ucl/apps/modulefiles/bundles
MODULE_VERSION_STACK=3.2.6
MODULESHOME=/shared/ucl/apps/modules/3.2.6/Modules/3.2.6
export MODULE_VERSION MODULEPATH MODULE_VERSION_STACK MODULESHOME
module ()
{
eval `/shared/ucl/apps/modules/3.2.6/Modules/$MODULE_VERSION/bin/modulecmd bash $*`
}
%post
cat >>/etc/apt/sources.list <<EOF
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.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 -y update
# Numpy is apparently required for certain parts of Xpra to work properly
apt-get -y install xpra xterm less python-numpy python3-numpy
printf "#!/bin/sh\nxpra start --systemd-run=no --user=\$USER --start-via-proxy=no --start-on-connect=xterm --notifications=no \"\$@\"\n" >> /usr/bin/custom-xpra-server-start
printf "#!/bin/sh\nxpra attach --opengl=no --no-printing --notifications=no --webcam=no\n \"\$@\"" >> /usr/bin/custom-xpra-attach
chmod +x /usr/bin/custom-xpra-server-start /usr/bin/custom-xpra-attach
%help
This is a Singularity container intended to run Xpra on UCL central HPC clusters.
It is Ubuntu-based, and contains an installation of Xpra and two scripts to abbreviate some awkward commands:
custom-xpra-server-start
custom-xpra-attach
Collection
- Name: UCL-RITS/rcps-shub-recipes
- License: MIT License
View on Datalad
Metrics
key | value |
---|---|
id | /containers/UCL-RITS-rcps-shub-recipes-xpra |
collection name | UCL-RITS/rcps-shub-recipes |
branch | master |
tag | xpra |
commit | 3bc31a6230e1c4f961770f20a0a118082e250678 |
version (container hash) | 4b875ab0c0a52fc710de0be77372cb59 |
build date | 2018-11-07T13:35:06.730Z |
size (MB) | 871 |
size (bytes) | 372523039 |
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.