Skip to content

Commit ff86964

Browse files
committed
Add arch for apptainer
1 parent cec53d4 commit ff86964

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/bash
2+
#
3+
# In the clasp toplevel directory use...
4+
# make -f apptainer/makefile
5+
#
6+
7+
rm -rf build-apptainer/*
8+
tar --exclude-vcs -cvf systems.tar -C $HOME ./common-lisp ./work/spiros/data ./work/data ~/common-lisp/amber-protein/products/
9+
apptainer build -F --bind $PWD:/mnt cando.sif apptainer/cando-arch.def

apptainer/cando-arch.def

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BootStrap: docker
2+
From: ghcr.io/yitzchak/archlinux-makepkg:latest
3+
4+
%post
5+
pacman -Syu --noconfirm binutils boost clang gmp fmt libunwind llvm ninja sbcl jupyterlab emacs openssh netcdf expat gocryptfs nodejs npm
6+
cd /mnt
7+
./koga --extensions=cando --build-path=build-apptainer/
8+
ninja -C build-apptainer
9+
ninja -C build-apptainer install
10+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
11+
mkdir -p /home/cando/
12+
chmod ugo+rwx /home/cando/
13+
tar -xvf /mnt/systems.tar -C /home/cando
14+
bash Miniconda3-latest-Linux-x86_64.sh -b -p /home/cando/miniconda3
15+
rm -rf Miniconda3-latest-Linux-x86_64.sh
16+
export PATH="/home/cando/miniconda3/bin:${PATH}"
17+
conda install -y -c conda-forge ambertools
18+
jupyter-lab build
19+
chmod -R ugo+rw /home/cando/
20+
21+
%environment
22+
export PATH="/home/cando/miniconda3/bin:${PATH}"
23+
export AMBERHOME=/home/cando/miniconda3
24+
25+

0 commit comments

Comments
 (0)