Skip to content

Commit 8e63372

Browse files
committed
update apptainer
1 parent ee574c3 commit 8e63372

File tree

4 files changed

+123
-0
lines changed

4 files changed

+123
-0
lines changed

apptainer/amber.def

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
BootStrap: docker
2+
From: debian:latest
3+
4+
%files
5+
$HOME/Downloads/AmberTools23.tar.bz2 /downloads/AmberTools23.tar.bz2
6+
7+
%post
8+
apt upgrade
9+
apt update
10+
apt -y install tcsh make \
11+
gcc gfortran g++ \
12+
flex bison patch bc \
13+
libbz2-dev libzip-dev \
14+
xorg-dev wget cmake \
15+
mpich openssh-client linux-perf
16+
apt install --yes bzip2
17+
cd /opt
18+
bunzip2 -c /downloads/AmberTools23.tar.bz2 | tar xvf -
19+
cd /opt/amber22_src/build
20+
mkdir /opt/amber22
21+
cmake /opt/amber22_src \
22+
-DCMAKE_INSTALL_PREFIX=/opt/amber22 \
23+
-DCOMPILER=GNU \
24+
-DBUILD_GUI=FALSE \
25+
-DMPI=FALSE -DCUDA=FALSE -DINSTALL_TESTS=FALSE \
26+
-DDOWNLOAD_MINICONDA=FALSE \
27+
-DBUILD_PYTHON=FALSE \
28+
2>&1 | tee cmake.log
29+
make -j20 install
30+
ln -s /opt/amber22 /opt/amber
31+
apt install --yes binutils libboost-all-dev clang-18 libclang-cpp18-dev libclang-18-dev libgmp-dev libfmt-dev libunwind-dev llvm-18 llvm-18-dev ninja-build sbcl jupyterlab emacs openssh-client openssh-server libnetcdf-dev expat gocryptfs nodejs npm strace emacs libelf-dev wget
32+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh
33+
bash Miniconda3-latest-Linux-aarch64.sh -b -p /home/cando/miniconda3
34+
rm -rf Miniconda3-latest-Linux-aarch64.sh
35+
export PATH="/home/cando/miniconda3/bin:${PATH}"
36+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
37+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
38+
conda install -y -c conda-forge jupyterlab sidecar # ambertools not available
39+
jupyter-lab build
40+
# cd /mnt
41+
# ./koga --reproducible-build --extensions=cando --build-mode=bytecode-faso --llvm-config="/usr/bin/llvm-config-18" --build-path=build-apptainer/
42+
# ninja -C build-apptainer
43+
# ninja -C build-apptainer install
44+
# mkdir -p /home/cando/
45+
# chmod ugo+rwx /home/cando/
46+
# tar -xvf /mnt/systems.tar -C /home/cando
47+
# whoami
48+
# ls /home/
49+
# chmod -R ugo+rw /home/cando/
50+
51+
%environment
52+
export AMBERHOME=/opt/amber
53+
# export LD_LIBRARY_PATH=/usr/local/lib
54+
# export XDG_CACHE_HOME=/home/cando/.cache
55+
56+
57+

apptainer/build-cando-debian

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
9+
apptainer build -F --bind $PWD:/mnt cando.sif apptainer/cando-debian.def

apptainer/cando-debian.def

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
BootStrap: localimage
2+
From: /home/drmeister/Development/cando/amber.sif
3+
4+
5+
# From: debian:latest
6+
7+
%post
8+
# apt upgrade
9+
# apt update
10+
apt install --yes libzmq3-dev
11+
cd /mnt
12+
./koga --reproducible-build --extensions=cando --build-mode=bytecode-faso --llvm-config="/usr/bin/llvm-config-18" --build-path=build-apptainer/
13+
ninja -C build-apptainer
14+
ninja -C build-apptainer install
15+
mkdir -p /home/cando/
16+
chmod ugo+rwx /home/cando/
17+
tar -xvf /mnt/systems.tar -C /home/cando
18+
# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh
19+
# bash Miniconda3-latest-Linux-aarch64.sh -b -p /home/cando/miniconda3
20+
# rm -rf Miniconda3-latest-Linux-aarch64.sh
21+
# export PATH="/home/cando/miniconda3/bin:${PATH}"
22+
# conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
23+
# conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
24+
# conda install -y -c conda-forge jupyterlab sidecar # ambertools not available
25+
# jupyter-lab build
26+
whoami
27+
ls /home/
28+
chmod -R ugo+rw /home/cando/
29+
30+
%environment
31+
export PATH="/home/cando/miniconda3/bin:${PATH}"
32+
export LD_LIBRARY_PATH=/usr/local/lib
33+
# export XDG_CACHE_HOME=/home/cando/.cache
34+
35+
36+

apptainer/makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
all:
3+
ninja -C build
4+
extensions/cando/scando-zeus-install
5+
6+
amber.sif: ./apptainer/amber.def
7+
apptainer build --fakeroot ./amber.sif apptainer/amber.def
8+
9+
cando.sif: amber.sif apptainer/cando-debian.def
10+
./apptainer/build-cando-debian
11+
12+
app:
13+
make cando.sif
14+
15+
send:
16+
scp cando.sif owlsnest:work/bin/
17+
# time ssh owlsnest-update
18+
19+
app-send:
20+
make app
21+
make send

0 commit comments

Comments
 (0)