bast / MRI-extract-surfaces

Set of containerized scripts to extract mesh surfaces from a T1/T2-weighted MRI scans.
European Union Public License 1.2
1 stars 1 forks source link

Make it work without internet connection #8

Open bast opened 5 months ago

bast commented 5 months ago

This might need few adaptations but we need to:

bast commented 5 months ago
Bootstrap: docker
From: ubuntu:24.04

%post
    apt-get update -y
    apt install -y curl

%runscript
    curl https://example.com > /dev/null 2>&1
    if [ $? -eq 0 ]; then
        echo "Internet connection is available from the container."
    else
        echo "No internet connection from the container."
    fi

%help
    Try with and without network:
    $ singularity run test.sif
    $ singularity run --net --network=none test.sif