Bootstrap: docker
From: debian:testing

%post
    set -e
    export DEBIAN_FRONTEND=noninteractive

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

    dbus-uuidgen > /etc/machine-id

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

%environment
    export LC_ALL=C
    export LANG=C

%runscript
    exec genx "$@"

%help
    Container based on debian testing

    Default command:
        genx

    Executables:
        genx
        genx_server

    Usage:
        apptainer run genx.sif [options]

%labels
    Author="GRADES"
    Institution="Synchrotron SOLEIL"
    Version="debian-testing"
    System="debian:testing"
    Packages="python3-genx"
    Entrypoint="genx"
