This repo contains a collection of .def files for apptainer used to make containers for running lsdtopotools, compiling the development branch, and building documentation.
You need apptainer to use these files.
- You can install natively in Linux using your normal installation routine for you distribution. For example on Ubuntu you use
apt-get install apptainer. - For MacOS follow these instructions: Installing on Mac
- In wondows you first need to install the Windows subsystem for Linx (see below). Once you use WSL to get a Linux subsystem running, just install in that subsystem (for example, using
apt-get install apptainer)
- Install wsl2:
- Start a powershell window
- Run
wsl --install - Download Ubuntu from the Microsoft store (we use Ubuntu 22.04) and install.
- Make sure you enter a password to this system you remember!
- You can start the Ubuntu operating system from a powershell window with:
> wsl -d Ubuntu-22.04
- You are now on a Linux operating system inside your Windows computer. Jump ahead to the section on installing on Linux
- wsl sometimes does something funny with a file called
/etc/resolv.confif you are running Ubuntu as your wsl operating system. If you are not online it will fail to create this file, and if you are online it will write this file in a way that fails to connect to the internet. Both of which cause various fatal error. - To resolve this issue: a. First start your Ubuntu system, then write the file:
> wsl -d Ubuntu-22.04
> sudo nano /etc/resolv.conf
b. Note if you don't use sudo you won't be allowed to write the file (you will get a permission denied error. sudo gives you administrator rights, you need to remember the password you set up when you installed the Ubuntu operating system on wsl).
c. Once you run nano, your file should say:
generateResolvConf = false
nameserver 8.8.8.8
You use apptainer to build a container using the command
apptainer build my_container.sif my_definition_file.def
The container for the full lsdtt stack ends up at a Gb and takes some time to build. But we have some pre-built containers you can just download.
- For the distribution version of lsdtt including visualisation tools:
wget https://www.geos.ed.ac.uk/~smudd/apptainer_containers/lsdtt_distrib.sif
- For the container that can build the development version or stable version from source use:
wget https://www.geos.ed.ac.uk/~smudd/apptainer_containers/lsdtt_development.sif
- And if you want to build the documentation use:
wget https://www.geos.ed.ac.uk/~smudd/apptainer_containers/jupyter_book_container.sif