Image size: —

For more on pulling from the registry, see the ilifu documentation.

First, once: add the registry and make it your default

singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry

If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.

Log in, for a private collection

singularity remote login idia-registry

Paste a token from your token page when asked. Public collections need no login.

Pull the container

singularity pull library://visualisation/visitv3.3.3_ubuntu20:latest

Shell into the container

singularity shell library://visualisation/visitv3.3.3_ubuntu20:latest

Run the container

singularity run library://visualisation/visitv3.3.3_ubuntu20:latest

First, once: add the registry and make it your default

apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry

If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.

Log in, for a private collection

apptainer remote login idia-registry

Paste a token from your token page when asked. Public collections need no login.

Pull the container

apptainer pull library://visualisation/visitv3.3.3_ubuntu20:latest

Shell into the container

apptainer shell library://visualisation/visitv3.3.3_ubuntu20:latest

Run the container

apptainer run library://visualisation/visitv3.3.3_ubuntu20:latest
This is a demo container used to illustrate a def file that uses all
supported sections.
Bootstrap: library
FROM: ubuntu:focal

%help
    This is a demo container used to illustrate a def file that uses all
    supported sections.

%labels
    APPLICATION NAME Ubuntu LTS + visit
    OS_VERSION 20.04
    APPLICATION_URL https://visit-dav.github.io/visit-website/ 

	SYSTEM_NAME iLifu
	SYSTEM_SINGULARITY_VERSION 3.8.0
	SYSTEM_URL http://www.ilifu.ac.za

    AUTHOR_NAME IDIA
    AUTHOR_EMAIL support@ilifu.ac.za


%files
    build_visit3_3_3 /opt/visit
    run_build_visit.sh /opt/visit
    build_visit_docker_cleanup.py /opt/visit
    build_test_visit.sh /opt/visit
    test_visit.py /opt/visit
    run_build_visit.sh /home/visit
    

%environment
    export LANG=en_US
    export LC_ALL=C
    export PATH=$PATH:/usr/local/visit/bin

%post
    export LANG=en_US
    export DEBIAN_FRONTEND=noninteractive
    mkdir -p /opt
    export WORKDIR=/opt/visit 
    

    apt-get update && apt-get install -y \
        git \
        wget \
        curl \
        unzip \
        subversion \
        build-essential \
        gcc \
        g++ \
        gfortran \
        zlib1g-dev \
        python \
        libsm-dev \
        libice-dev \
        libssl-dev \
        libx11-xcb-dev \
        libxcb-dri2-0-dev \
        libxcb-xfixes0-dev \
        libxkbcommon-dev \
        xutils-dev \
        xorg-dev \
        libfreetype6-dev \
        autoconf \
        libtool \
        m4 \
        automake \
        libxml2 \
        libxml2-dev \
        vim \
        emacs \
        bison \
        flex \
        cpio \
        libegl1 \
        libegl1-mesa-dev \
        #qtcreator \
        #qt5-default \
        #qtbase5-dev \

    apt-get install -y qtbase5-dev
      
    rm -rf /var/lib/apt/lists/*

    apt-get update && apt-get install -y libffi-dev
    
    rm -rf /var/lib/apt/lists/*

    apt-get update && apt-get install -y locales 
    
    rm -rf /var/lib/apt/lists/*
    
    localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
    

    cd /usr/include && ln -s freetype2 freetype

    cd /usr && ln -s lib lib64

    #groupadd -r visit && useradd -ms /bin/bash --no-log-init -r -g visit visit 

    #export USER=visit

    mkdir third-party/

    wget https://github.com/visit-dav/visit/releases/download/v3.3.3/visit-install3_3_3

    mv visit-install3_3_3 visit-install

    chmod +x visit-install

    sed -i 's/config=prompt/config=llnl_open/' visit-install

    wget https://github.com/visit-dav/visit/releases/download/v3.3.3/visit3_3_3.linux-x86_64-ubuntu20.tar.gz
    
    #tar zxf visit3_3_3.linux-x86_64-ubuntu20.tar.gz
    mv visit3_3_3.linux-x86_64-ubuntu20.tar.gz visit3_3_3.linux-x86_64.tar.gz

   ./visit-install 3.3.3 linux-x86_64 /usr/local/visit
Download visualisation-visitv3.3.3_ubuntu20_latest.def
#!/bin/sh

    /bin/bash "$@"
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow


    export LANG=en_US
    export LC_ALL=C
    export PATH=$PATH:/usr/local/visit/bin