Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Singularity Container

...

Status
colourGreen
titleVersion • 3.7.0

...

Alternativ ist es möglich den Container mittels eines Remote Builders in der Sylabs Cloud zu bauen. Hierfür wird ein entsprechender Account benötigt.

Container außerhalb des Clusters erstellen

...

Nachstehend sind einige grundlegende Schritte für das Erstellen eines Containers.

Codeblock
languagetext
themeMidnight
titleUbuntu 20.04 Image herunterladen und einen Container daraus erstellen
singularity pull ubuntu.sif library://ubuntu:20.04


Codeblock
languagetext
themeMidnight
titleContainer lokal erkunden
# Start the container, and enter the shell
singularity shell ./ubuntu.sif

# Now check the operating system of the container, you would see Ubuntu
head /etc/os-release

# your user id inside container
whoami

# exit the container
exit


Codeblock
languagetext
themeMidnight
titleConvert the ubuntu.sif file into a Singularity sandbox
singularity build --fakeroot --sandbox myubuntu ./ubuntu.sif


Codeblock
languagetext
themeMidnight
titleStart the sandbox as container with a writable shell and install nano
singularity shell --fakeroot --writable myubuntu
apt update
apt upgrade
apt install nano
exit


Codeblock
languagetext
themeMidnight
titleConvert the sandbox into a Singularity image file
singularity build --fakeroot myubuntu.sif myubuntu/


Codeblock
languagetext
themeMidnight
titleCreate an image from a def file
Bootstrap: docker
From: ubuntu:18.04

%post
    apt-get update -y
    apt-get -y install libpmem1 librpmem1 libpmemblk1 libpmemlog1 libpmemobj1 libpmempool1
    apt-get -y install libpmem-dev librpmem-dev libpmemblk-dev libpmemlog-dev libpmemobj-dev libpmempool-dev libpmempool-dev
    apt-get -y install build-essential libmemkind-dev libvmem-dev nano git 

Container im Clusters nutzen

...

Nachdem der Container gebaut und auf das Cluster übertragen wurde , kann er ist er auf allen Knoten verfügbar und kann mit den folgenden Befehlen gestartet werden.

...