github.com/apptainer/singularity@v3.1.1+incompatible/examples/legacy/2.2/contrib/ubuntu-openfoam.def (about)

     1  # Copyright (c) 2016, Ontropos, Inc. All rights reserved.
     2  #
     3  # Copyright (c) 2015-2017, Gregory M. Kurtzer. All rights reserved.
     4  # 
     5  # "Singularity" Copyright (c) 2016, The Regents of the University of California,
     6  # through Lawrence Berkeley National Laboratory (subject to receipt of any
     7  # required approvals from the U.S. Dept. of Energy).  All rights reserved.
     8  
     9  BootStrap: debootstrap
    10  OSVersion: trusty
    11  MirrorURL: http://archive.ubuntu.com/ubuntu/
    12  Include: bash
    13  
    14  %post
    15      apt-get -y install wget apt-transport-https
    16      sed -i 's/main/main restricted universe/g' /etc/apt/sources.list
    17      echo 'deb http://download.openfoam.org/ubuntu trusty main' >> /etc/apt/sources.list
    18      wget -O - http://dl.openfoam.org/gpg.key | apt-key add -
    19      apt-get update
    20      apt-get -y install openfoam4
    21      apt-get clean
    22      echo ". /opt/openfoam4/etc/bashrc" >> /environment
    23