-
Notifications
You must be signed in to change notification settings - Fork 2
/
Apptainer
36 lines (29 loc) · 985 Bytes
/
Apptainer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Bootstrap: docker
From: python:3.10.9-bullseye
%setup
mkdir -p \
$APPTAINER_ROOTFS/application/.git
%files
./jeiss_convert /application/jeiss_convert
./.gitignore /application/.gitignore
./.gitmodules /application/.gitmodules
./LICENSE /application/LICENSE
./pyproject.toml /application/pyproject.toml
./setup.py /application/setup.py
./README.md /application/README.md
%post
cd /application
pip install -U pip setuptools wheel
pip install .
pip cache purge
VERSION=$(python -c 'import jeiss_convert as pkg; print(pkg.__version__)')
echo "version $VERSION" >> "$APPTAINER_LABELS"
%labels
author Chris L. Barnes
email cb619@cam.ac.uk
url https://github.com/clbarnes/jeiss-convert
package jeiss_convert
%help
jeiss_convert
Convert Jeiss .dat files into a well-documented, widely compatible format: HDF5.
For more information, see the README inside this image at `/application/README.md`.