Bootstrap: docker
From: ubuntu:20.04
Stage: build

%files
    Engys.tgz /opt

%post
    apt-get update
    apt-get install -y --no-install-recommends wget software-properties-common gpg-agent tar libxtst6
    sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
    add-apt-repository http://dl.openfoam.org/ubuntu
    apt-get update 
    apt-get install -y --no-install-recommends openfoam7 paraviewopenfoam56 xterm
    cd /opt 
    tar zxvf Engys.tgz
    rm Engys.tgz
    echo 'POST script done'

%runscript
    echo "Running Container"
    echo "Arguments received: $*"
#   exec echo  "$@"
    exec bash --rcfile /opt/openfoam7/etc/bashrc /opt/Engys/HELYX-OS/v2.4.0/HELYX-OS.sh


%labels
    Author JCugnoni/CAELinux
    Version v0.0.1

%help
    This is a simple Ubuntu 20.04 container for HelyxOS GUI and OpenFOAM v7 