Created
December 26, 2017 08:50
-
-
Save TakahisaShiratori/cb748cf6931f1e154219a0333c65f4b1 to your computer and use it in GitHub Desktop.
Tried to create Singularity Container of OpenFOAM v5 but failed to run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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