Bootstrap: docker
From: ubuntu:20.04

%help
    This is a Singularity container for running crux, requiring glibc 2.29.

%files
    /usr/local/Cluster-Apps/ceuadmin/crux/4.2/bin/crux /usr/local/bin/crux

%post
    # Use a minimal update to avoid device file issues
    apt-get update -y --allow-unauthenticated
    apt-get install -y libgomp1
    apt-get clean
    rm -rf /var/lib/apt/lists/*
    chmod +x /usr/local/bin/crux

%runscript
    exec /usr/local/bin/crux "$@"

%environment
    export LC_ALL=C
