-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflagAutomata_2025-10-14.def
More file actions
45 lines (38 loc) · 1.34 KB
/
Copy pathflagAutomata_2025-10-14.def
File metadata and controls
45 lines (38 loc) · 1.34 KB
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
37
38
39
40
41
42
43
44
45
Bootstrap: docker
From: ubuntu:24.04
%help
Ubuntu 24.04 base with Python 3.12, pip and psutil
for running the SLURM environment-probe script.
%labels
Author loi
Version 1.0
Python 3.12
%post
# ---- system packages ----------------------------------------------------
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3 python3-pip python3-venv python3-dev \
build-essential procps ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED
# ---- Python libraries ----------------------------------------------------
pip3 install --no-cache-dir psutil
pip3 install --no-cache-dir numpy==1.26.4
pip3 install --no-cache-dir pandas==2.3.3
pip3 install --no-cache-dir matplotlib==3.10.6
pip3 install --no-cache-dir seaborn==0.13.2
pip3 install --no-cache-dir deap==1.4.3
pip3 install --no-cache-dir imageio==2.37.0
%environment
# Ensure the container’s Python is found first
export PATH=/usr/local/bin:$PATH
export LANG=C.UTF-8
%runscript
# Default entrypoint: just execute whatever the user passes
exec "$@"
%test
python3 - <<'PY'
import sys, psutil, platform
print("Container test OK – Python", platform.python_version(), "psutil", psutil.__version__)
import numpy, pandas, matplotlib, seaborn, deap, imageio
PY