Skip to content

Instantly share code, notes, and snippets.

@TakahisaShiratori
Created December 26, 2017 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakahisaShiratori/cb748cf6931f1e154219a0333c65f4b1 to your computer and use it in GitHub Desktop.
Save TakahisaShiratori/cb748cf6931f1e154219a0333c65f4b1 to your computer and use it in GitHub Desktop.
Tried to create Singularity Container of OpenFOAM v5 but failed to run
Bootstrap: docker
From: ubuntu:17.10
%post
apt-get -y update
apt-get -y upgrade
apt-get -y install apt-file
apt-get -y install software-properties-common
apt-get -y install wget
apt-get -y install apt-transport-https
add-apt-repository http://dl.openfoam.org/ubuntu
sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
apt-get -y update
apt-get -y install openfoam5
# sed -ie '$ a \. /opt/openfoam5/etc/bashrc' /root/.bashrc
echo '. /opt/openfoam5/etc/bashrc' >>$SINGULARITY_ENVIRONMENT
%runscript
simpleFoam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment