-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity.def
48 lines (41 loc) · 1.51 KB
/
Singularity.def
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
Bootstrap: docker
From: condaforge/mambaforge
Stage: build
%files
script.sh /scripts
%labels
MAINTAINER Reimar Bauer <rb.proj@gmail.com>
%post
##################################################################################
# Definition File for singualarity
#
# Based on mambaforge Image
# xhost +
# singularity build -f mss.sif Singularity.def
# singularity shell mss.sif
#
# Singularity > mss # starts the ui
# Singularity > mswms_demodata --seed # creates in your $HOME a mss/ folder with testdata
# Singularity > export PYTHONPATH=$HOME/mss; mswms # starts the development server
# Singularity > mscolab db --init; mscolab start # starts the mscolab server
#
##################################################################################
# get keyboard working for mss gui
apt-get --yes update && DEBIAN_FRONTEND=noninteractive \
apt-get --yes install xserver-xorg-video-dummy \
&& apt-get --yes upgrade \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Update base
# this is needed to be able to install mss versions > 1.2.1
conda config --add channels defaults &&\
conda update -n base -c defaults conda
# create some desktop user directories
# if there is no data attached e.g. demodata /srv/mss is the preferred dir
mkdir -p /root/.local/share/applications/ \
&& mkdir -p /root/.local/share/icons/hicolor/48x48/apps/ \
&& mkdir /srv/mss
# Install Mission Support System Software
# xorg-libxrender installs X11 packages needed by QT
mamba create -n mssenv mss xorg-libxrender -y
PATH=/opt/conda/envs/mssenv/bin:$PATH