Skip to content

Commit

Permalink
Merge pull request #218 from tai271828/singularity-0.1
Browse files Browse the repository at this point in the history
First singularity release on Singularity Hub
  • Loading branch information
yungyuc committed Sep 25, 2018
2 parents 5d73a39 + ce7a11f commit 8a869d0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions contrib/singularity/Singularity.0.1.0
@@ -0,0 +1,32 @@
BootStrap: debootstrap
OSVersion: xenial
MirrorURL: http://us.archive.ubuntu.com/ubuntu/


%runscript
echo "Welcome to SOLVCON singularity instance."

%files
prepare-solvcon-dev.sh /prepare-solvcon-dev.sh

%post
echo "Prepare to build SOLVCON in singularity instance..."
sed -i 's/$/ universe/' /etc/apt/sources.list
apt-get update
# general tools
apt-get install vim git -y
# used for miniconda extraction
apt-get install bzip2
# SOLVCON build tools
apt-get install openssh-client openssh-server liblapack-pic liblapack-dev -y
apt-get install build-essential unzip -y
# it currently works in the root path
echo "Working location: " `pwd`
# it is /root
echo $HOME
apt-get clean

# start to build
export SOLVCON_BUILD_DIR=/opt
/bin/bash -c "source /prepare-solvcon-dev.sh $SOLVCON_BUILD_DIR"

0 comments on commit 8a869d0

Please sign in to comment.