Bootstrap: docker
From: debian:trixie

%post
    set -e
    export DEBIAN_FRONTEND=noninteractive

    apt-get update
    apt-get install -y --no-install-recommends \
        bash \
        dbus-bin \
        pyfai

    dbus-uuidgen > /etc/machine-id

    apt-get clean
    rm -rf /var/lib/apt/lists/*

%environment
    export LC_ALL=C
    export LANG=C

%runscript
    exec /bin/bash "$@"

%help
    Container based on debian trixie

    Default command:
        /bin/bash

    Executables:
        MX-calibrate
        check_calib
        detector2nexus
        diff_map
        diff_tomo
        eiger-mask
        peakfinder
        pyFAI-average
        pyFAI-benchmark
        pyFAI-calib
        pyFAI-calib2
        pyFAI-diffmap
        pyFAI-diffmap-view
        pyFAI-drawmask
        pyFAI-integrate
        pyFAI-recalib
        pyFAI-saxs
        pyFAI-waxs
        sparsify-Bragg

    Usage:
        apptainer run pyfai.sif [options]

%labels
    Author="GRADES"
    Institution="Synchrotron SOLEIL"
    Version="debian-trixie"
    System="debian:trixie"
    Packages="pyfai"
    Entrypoint="/bin/bash"
