Man page - deb2singularity(1)
Packages contains this manual
- devscripts.conf(5)
- build-rdeps(1)
- whodepends(1)
- checkbashisms(1)
- annotate-output(1)
- namecheck(1)
- transition-check(1)
- debrsign(1)
- dpkg-genbuilddeps(1)
- deb-reversion(1)
- ltnu(1)
- debbisect(1)
- cowpoke(1)
- dscextract(1)
- list-unreleased(1)
- getbuildlog(1)
- debclean(1)
- chdist(1)
- rc-alert(1)
- mk-origtargz(1)
- deb2docker(1)
- edit-patch(1)
- what-patch(1)
- dd-list(1)
- tagpending(1)
- suspicious-source(1)
- bts(1)
- deb-why-removed(1)
- devscripts(7)
- plotchangelog(1)
- uscan(1)
- mergechanges(1)
- debsnap(1)
- debftbfs(1)
- hardening-check(1)
- dscverify(1)
- dget(1)
- who-uploads(1)
- debrepro(1)
- git-deborig(1)
- deb-janitor(1)
- deb2apptainer(1)
- dep-14-convert-git-branch-names(1)
- dep3changelog(1)
- wnpp-alert(1)
- pts-unsubscribe(1)
- sadt(1)
- debc(1)
- debdiff-apply(1)
- nmudiff(1)
- add-patch(1)
- dpkg-depcheck(1)
- rmadison(1)
- debsign(1)
- deb2singularity(1)
- diff2patches(1)
- debi(1)
- mk-build-deps(1)
- origtargz(1)
- debrebuild(1)
- deb-check-file-conflicts(1)
- reproducible-check(1)
- mass-bug(1)
- debootsnap(1)
- salsa(1)
- svnpath(1)
- debrelease(1)
- pts-subscribe(1)
- debdiff(1)
- dch(1)
- debcheckout(1)
- wrap-and-sort(1)
- wnpp-check(1)
- manpage-alert(1)
- dcmd(1)
- who-permits-upload(1)
- debchange(1)
- archpath(1)
- debuild(1)
- grep-excuses(1)
- debcommit(1)
- uupdate(1)
apt-get install devscripts
Available languages:
en fr deManual
DEB2APPTAINER
BEZEICHNUNGĂBERSICHT
BESCHREIBUNG
OPTIONEN
DATEIEN
ANMERKUNGEN
BEISPIELE
AUTOREN
SIEHE AUCH
AUTOREN
ĂBERSETZUNG
BEZEICHNUNG
deb2apptainer - Build a Singularity/Apptainer image with given Debian packages
ĂBERSICHT
deb2apptainer
[
-hB
][
-c
CMD
] [
-f
FROM
][
-n
NAME
] [
-o
DIR
][
-p
PRE_SCRIPT
] [
-s
POST_SCRIPT
]
packages
deb2singularity
[
-hB
][
-c
CMD
]
[
-f
FROM
][
-n
NAME
] [
-o
DIR
][
-p
PRE_SCRIPT
] [
-s
POST_SCRIPT
]
packages
BESCHREIBUNG
deb2apptainer is a simple script which takes as input a list of Debian packages and generates automatically a Singularity/Apptainer container including these packages. A set of freedesktop.org desktop launchers are also generated based on the .desktop and icon files found in the packages. In addition, a desktop launcher is created to start the container in a Terminal.
This tool is suited for deploying applications as containers, as well as for testing Debian packages in a sandbox.
OPTIONEN
|
-B |
do NOT build the image (default is to build). A build script is generated in the DIR target directory. |
-c EXEC
Command to run in the container (default to /bin/bash ).
-f FROM
Distribution is to be used (default to debian:stable ).
|
-h |
Show this help |
-n NAME
Name of the image (default is built from the package list).
|
-o DIR |
Use given directory DIR for the build (default is in /tmp). |
-p PRE_SCRIPT
Execute the given script PRE_SCRIPT before packages install.
-s POST_SCRIPT
Execute the given script POST_SCRIPT after packages install.
packages
The package list can be any Debian package, as well as local .deb files.
DATEIEN
|
⢠|
DIR/README |
|||
|
⢠|
DIR/image.def |
|||
|
⢠|
DIR/image.sif |
|||
|
⢠|
DIR/launchers/ |
|||
|
⢠|
DIR/icons/ |
|||
|
⢠|
DIR/build |
|||
|
⢠|
DIR/start |
ANMERKUNGEN
You obviously require to have apptainer installed.
Get the Debian package at: - https://apptainer.org/docs/admin/main/installation.html#install-debian-packages
Usual commands typically used to handle Apptainer/Singularity containers are:
|
build |
apptainer build image.sif |
||
|
run |
apptainer run image.sif apptainer run ânv image.sif # with NVIDIA GPU pass-through |
||
|
info |
apptainer inspect image.sif |
||
|
header |
apptainer sif header image.sif |
||
|
data |
apptainer sif list image.sif |
BEISPIELE
Create a
Singularity/Apptainer container with package
x11-apps
in
directory
/tmp/xeyes
, and launch
xeyes
:
|
⢠|
deb2apptainer -o /tmp/xeyes x11-apps |
|||
|
⢠|
/tmp/xeyes/start xeyes |
A Desktop launcher is created as /tmp/xeyes/launchers/x11-apps-terminal.desktop
Create a Singularity/Apptainer container with x11-apps and meshlab
deb2apptainer x11-apps meshlab
Create a Singularity/Apptainer
container making sure software channels
are active:
|
⢠|
echo âsed -i âs/main/main contrib non-free/gâ /etc/apt/sources.listâ > pre.sh |
||
|
⢠|
deb2apptainer -p pre.sh x11-apps |
Create a Singularity/Apptainer
container based on specific Debian
version, and make use of the GPU:
|
⢠|
echo âecho âdeb http://deb.debian.org/debian bullseye main contrib non-freeâ >> /etc/apt/sources.listâ > pre-script.sh |
||
|
⢠|
deb2apptainer -n pyhst2 -f debian:bullseye -p pre-script.sh -o /tmp/apptainer-pyhst2/ python3-pyhst2-cuda nvidia-smi nvidia-cuda-toolkit |
||
|
⢠|
apptainer run ânv /tmp/apptainer-pyhst2/pyhst2.sif nvidia-smi ``` |
AUTOREN
Emmanuel Farhi (emmanuel.farhi@synchrotron-soleil.fr)
SIEHE AUCH
deb2docker(1), distrobox-create(1), distrobox-enter(1), docker(1), apptainer(1)
AUTOREN
Emmanuel Farhi.
ĂBERSETZUNG
Diese Ăbersetzung wurde mit dem Werkzeug po4a <URL:https://po4a.org/> durch Chris Leick c.leick@vollbio.de im Juli 2012 erstellt und vom deutschen Debian-Ăbersetzer-Team korrekturgelesen. Bitte melden Sie alle Fehler in der Ăbersetzung an debian-l10n-german@lists.debian.org oder als Fehlerbericht an das Paket devscripts . Sie kĂśnnen mit dem folgenden Befehl das englische Original anzeigen Âť man -L C Abschnitt deutsche_Handbuchseite ÂŤ.