-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from tai271828/singularity-0.1
First singularity release on Singularity Hub
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|