-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsingularity.def
More file actions
53 lines (45 loc) · 1.52 KB
/
singularity.def
File metadata and controls
53 lines (45 loc) · 1.52 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
46
47
48
49
50
51
52
53
BootStrap: docker
From: python:3.9-slim
%post
# Update package lists and install dependencies
apt-get update && apt-get install -y \
python3-pyqt5 \
qtbase5-dev \
libxcb-xinerama0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-shape0 \
git \
build-essential \
python3-dev \
libopenblas-dev \
liblapack-dev \
gfortran \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
mkdir -p /app
cd /app
# Clone repositories
git clone https://github.com/DCAN-Labs/Seg-Model-Creation-GUI.git
git clone https://github.com/DCAN-Labs/SynthSeg.git
git clone https://github.com/DCAN-Labs/dcan-nn-unet.git
# Upgrade pip and install Python dependencies
pip install --upgrade pip setuptools wheel
# Install NumPy pandas and scipy separately first
pip install --no-cache-dir numpy==1.21.6
pip install --no-cache-dir pandas==1.2.5
pip install --no-cache-dir scipy==1.7.3
# Install remaining dependencies from requirements.txt
pip install --no-cache-dir -r /app/Seg-Model-Creation-GUI/requirements.txt --upgrade
%environment
# Set environment variables for repository paths
export Synth_Repo=/app/SynthSeg
export Dcan_Repo=/app/dcan-nn-unet
export Seg_Model_Repo=/app/Seg-Model-Creation-GUI
export DISPLAY=:0 # Required for GUI applications
%runscript
# Command to run the GUI
python /app/