Man page - deb2singularity(1)
Packages contas this manual
- diff2patches(1)
- debuild(1)
- deb2apptainer(1)
- mk-origtargz(1)
- chdist(1)
- dd-list(1)
- dscextract(1)
- mass-bug(1)
- deb2docker(1)
- debftbfs(1)
- getbuildlog(1)
- mergechanges(1)
- annotate-output(1)
- debbisect(1)
- debrepro(1)
- dpkg-depcheck(1)
- bts(1)
- reproducible-check(1)
- git-deborig(1)
- deb-why-removed(1)
- transition-check(1)
- mk-build-deps(1)
- what-patch(1)
- dep-14-convert-git-branch-names(1)
- debsign(1)
- cowpoke(1)
- debdiff-apply(1)
- archpath(1)
- devscripts.conf(5)
- namecheck(1)
- nmudiff(1)
- who-uploads(1)
- uscan(1)
- dcmd(1)
- suspicious-source(1)
- wnpp-check(1)
- grep-excuses(1)
- debrelease(1)
- deb-reversion(1)
- deb2singularity(1)
- rmadison(1)
- debi(1)
- add-patch(1)
- sadt(1)
- dpkg-genbuilddeps(1)
- checkbashisms(1)
- wrap-and-sort(1)
- dscverify(1)
- debcheckout(1)
- debc(1)
- debcommit(1)
- manpage-alert(1)
- pts-unsubscribe(1)
- wnpp-alert(1)
- tagpending(1)
- who-permits-upload(1)
- build-rdeps(1)
- whodepends(1)
- plotchangelog(1)
- rc-alert(1)
- deb-janitor(1)
- dch(1)
- uupdate(1)
- pts-subscribe(1)
- hardening-check(1)
- debrebuild(1)
- svnpath(1)
- debdiff(1)
- debchange(1)
- deb-check-file-conflicts(1)
- debrsign(1)
- origtargz(1)
- dget(1)
- salsa(1)
- dep3changelog(1)
- debclean(1)
- list-unreleased(1)
- debootsnap(1)
- edit-patch(1)
- debsnap(1)
- ltnu(1)
- devscripts(7)
apt-get install devscripts
Available languages:
en fr deManual
| DEB2APPTAINER(1) | DEB2APPTAINER(1) |
NAME
deb2apptainer - Build a Singularity/Apptainer image with given Debian packages
SYNOPSIS
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
DESCRIPTION
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.
OPTIONS
- -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.
FILES
- •
- DIR/README
- •
- DIR/image.def
- •
- DIR/image.sif
- •
- DIR/launchers/
- •
- DIR/icons/
- •
- DIR/build
- •
- DIR/start
NOTES
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:
EXAMPLES
- •
- 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
- •
- 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 ```
AUTHORS
Emmanuel Farhi (emmanuel.farhi@synchrotron-soleil.fr)
SEE ALSO
deb2docker(1), distrobox-create(1), distrobox-enter(1), docker(1), apptainer(1)
AUTHORS
Emmanuel Farhi.
| February 2024 |